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