Terraform module which delivers a Web Application artifact to the related Web Server by traditional deployment, powered by Seal/Courier.
module "custom-deployer" {
source = "..."
infrastructure = {
runtime_source = "https://github.com/seal-io/terraform-provider-courier//pkg/runtime/source_builtin"
}
deployment = {
rolling = {
max_surge = 0.25
}
}
target = {
addresses = [...]
authn = {
mode = "ssh"
user = "ansible"
secret = "ansible" # either password or token.
}
}
artifact = {
runtime_class = "tomcat"
refer = {
uri = "https://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/sample.war"
ports = [ 80 ]
}
}
}
Please read our contributing guide if you're interested in contributing to Walrus template.
Name | Version |
---|---|
terraform | >= 1.0 |
courier | >= 0.0.8 |
Name | Version |
---|---|
courier | >= 0.0.8 |
No modules.
Name | Type |
---|---|
courier_deployment.deployment | resource |
courier_artifact.artifact | data source |
courier_runtime.runtime | data source |
courier_target.target | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
context | Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field. Examples: context: |
map(any) |
{} |
no |
infrastructure | Specify the infrastructure information for deploying. Examples: infrastructure: |
object({ |
{} |
no |
deployment | Specify the deployment action, like scheduling, progress time and so on. Examples: deployment: |
object({ |
{ |
no |
artifact | Specify the artifact of deployment, like a docker image, a war file and so on. Examples: artifact: |
object({ |
n/a | yes |
target | Specify the target of deployment, include the address list of target, authentication information and so on. Examples: target: |
object({ |
n/a | yes |
Name | Description |
---|---|
context | The input context, a map, which is used for orchestration. |
refer | The refer, a map, which is used for dependencies or collaborations. |
connection | The connection, a string combined host and port, might be a comma separated string or a single string. |
address | The address, a string only has host, might be a comma separated string or a single string. |
ports | The port list of the service. |
endpoints | The endpoints, a list of string combined host and port. |
Copyright (c) 2023 Seal, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at LICENSE file for details.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.