-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
27 lines (24 loc) · 795 Bytes
/
data.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
data "template_file" "knife_rb" {
template = "${file("templates/knife.rb.tpl")}"
vars {
chef_username = "${var.chef_username}"
org_short_name = "${var.org_short_name}"
project_id = "${var.project_id}"
chef_hostname = "${var.hostname}"
}
}
data "template_file" "provision" {
template = "${file("templates/provision.sh.tpl")}"
vars {
chefwork_rpm = "${var.chefwork_rpm}"
chefserver_rpm = "${var.chefserver_rpm}"
chef_username = "${var.chef_username}"
chef_fname = "${var.chef_fname}"
chef_lname = "${var.chef_lname}"
chef_email = "${var.chef_email}"
chef_password = "${var.chef_password}"
org_short_name = "${var.org_short_name}"
org_full_name = "${var.org_full_name}"
knife_rb = "${data.template_file.knife_rb.rendered}"
}
}