removed deprecated lines

This commit is contained in:
Edward Viaene
2016-10-14 08:59:23 +00:00
parent 6789aec679
commit f67b4b0e12
4 changed files with 13 additions and 9 deletions
+9 -6
View File
@@ -1,15 +1,18 @@
provider "cloudinit" {}
resource "template_file" "init-script" {
data "template_file" "init-script" {
template = "${file("scripts/init.cfg")}"
vars {
region = "${var.AWS_REGION}"
REGION = "${var.AWS_REGION}"
}
}
resource "template_file" "shell-script" {
data "template_file" "shell-script" {
template = "${file("scripts/volumes.sh")}"
vars {
DEVICE = "${var.INSTANCE_DEVICE_NAME}"
}
}
resource "template_cloudinit_config" "cloudinit-example" {
data "template_cloudinit_config" "cloudinit-example" {
gzip = false
base64_encode = false
@@ -17,12 +20,12 @@ resource "template_cloudinit_config" "cloudinit-example" {
part {
filename = "init.cfg"
content_type = "text/cloud-config"
content = "${template_file.init-script.rendered}"
content = "${data.template_file.init-script.rendered}"
}
part {
content_type = "text/x-shellscript"
content = "${template_file.shell-script.rendered}"
content = "${data.template_file.shell-script.rendered}"
}
}