Terraform provisioner for Converge
This plugin allows you to run converge directly in terraform.
Download a binary from the releases page.
Then create a .terraformrc
file in your home directory with the converge
provisioner
pointing to the location of your downloaded binary.
provisioners {
converge = "/usr/local/bin/terraform-provisioner-converge"
}
$ make vendor
$ make
hcl
(required) - A list of files to run through Converge. Can be a single path as a stringca_file
(optional) - Path to a CA certificate to trust. Requiresuse_ssl
cert_file
(optional) - Path to a certificate file for SSL. Requiresuse_ssl
download_binary
(optional) - Install Converge binary. Default tofalse
install_dir
(optional) - Directory to install converge binary on the remote host. Default is/usr/bin
binary_dir
(optional) - Location of the converge binary on the remote host. Default is/usr/bin
key_file
(optional) - Path to a key file for SSL. Requiresuse_ssl
local
(optional) - Run Converge in local mode. Defaults totrue
local_addr
(optional) - Address to use for local RPC connectionlog_level
(optional) - Logging level. One ofDEBUG
,INFO
,WARN
,ERROR
orFATAL
. Default isINFO
no_token
(optional) - Don't use or generate an RPC tokenparams
(optional) - A hash of parameter/value pairs to pass to Convergerpc_addr
(optional) - Address for server RPC connection. Overrideslocal
rpc_token
(optional) - Token to use for RPCuse_ssl
(optional) - Use SSL to connectversion
(optional) - Specify the version of Converge. Default is the latest version.
resource "aws_instance" "web" {
...
provisioner "converge" {
params = {
key = "value"
message = <<EOF
This is not the default message
EOF
}
hcl = [
"http://some.webserver.com/converge/app.hcl",
"http://some.other.webserver.org/converge/otherapp.hcl"
]
download_binary = true
prevent_sudo = false
# http_proxy = "Outgoing http proxy address"
# https_proxy = "Outgoing https proxy address"
# no_proxy = [ "list of ip addresses to not proxy" ]
}
}