Skip to content

Commit

Permalink
Merge pull request #9 from mengesb/knife_template
Browse files Browse the repository at this point in the history
knife_template
  • Loading branch information
mengesb authored Aug 9, 2016
2 parents a147326 + 4d1c26e commit 353189a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ resource "aws_route53_record" "chef-ha-elb" {
records = ["${aws_elb.chef-ha-frontend.dns_name}"]
}
# knife.rb templating
resource "template_file" "knife-rb" {
data "template_file" "knife-rb" {
depends_on = ["null_resource.chef-prep"]
template = "${file("${path.module}/files/knife-rb.tpl")}"
vars {
Expand Down Expand Up @@ -647,7 +647,7 @@ resource "null_resource" "knife-rb" {
command = <<-EOC
[ -f .chef/knife.rb ] && rm -rf .chef/knife.rb || echo OK
tee .chef/knife.rb <<EOF
${template_file.knife-rb.rendered}
${data.template_file.knife-rb.rendered}
EOF
EOC
}
Expand Down

0 comments on commit 353189a

Please sign in to comment.