Last active
December 6, 2016 13:34
-
-
Save larribas/af4524da0e55e4b74c27979e3015eebf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "template_file" "demo" { | |
template = "${file("some_template_file.txt")}" | |
vars = { | |
IMAGE_NAME = "${var.image-name}" | |
} | |
} | |
resource "opennebula_template" "demo" { | |
name = "terraform-demo" | |
description = "${data.template_file.demo.rendered}" | |
permissions = "600" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "opennebula_template" "demo" { | |
name = "terraform-demo" | |
cpu = "4.3" | |
permissions = { | |
owner_u = 1 | |
owner_m = 1 | |
} | |
disk = { | |
image = "${var.image-name}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment