mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 19:02:07 +03:00
docker-demo-3
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
provider "cloudinit" {}
|
||||
|
||||
data "template_file" "jenkins-init" {
|
||||
template = "${file("scripts/jenkins-init.sh")}"
|
||||
vars {
|
||||
DEVICE = "${var.INSTANCE_DEVICE_NAME}"
|
||||
JENKINS_VERSION = "${var.JENKINS_VERSION}"
|
||||
}
|
||||
}
|
||||
data "template_cloudinit_config" "cloudinit-jenkins" {
|
||||
|
||||
gzip = false
|
||||
base64_encode = false
|
||||
|
||||
part {
|
||||
content_type = "text/x-shellscript"
|
||||
content = "${data.template_file.jenkins-init.rendered}"
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user