Skip to content

Instantly share code, notes, and snippets.

@martonpe
Created January 29, 2016 16:48
Show Gist options
  • Save martonpe/659898d6e6d0fa4b7e7a to your computer and use it in GitHub Desktop.
Save martonpe/659898d6e6d0fa4b7e7a to your computer and use it in GitHub Desktop.
resource "template_file" "luigi-config" {
template = "cloud-config/luigi.yml"
vars {
default = "${file("cloud-config/default.yml")}"
...
}
}
resource "template_cloudinit_config" "luigi-config" {
gzip = true
base64_encode = false
part {
content_type = "text/cloud-config"
content = "${template_file.luigi-config.rendered}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment