From 16a2a073ef76653267fc3a955f4a651c4263fc3b Mon Sep 17 00:00:00 2001 From: Brian Menges Date: Wed, 10 Aug 2016 14:32:04 -0700 Subject: [PATCH 1/2] Multi-AZ update - Package chef-backend updated to 1.1.2 - Package update fixed problem with chef-backend joining cluster with override on postgresql.md5_auth_cidr_addresses --- ...butes-json.tpl => backend-attributes-json.tpl} | 0 main.tf | 15 ++++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) rename files/{attributes-json.tpl => backend-attributes-json.tpl} (100%) diff --git a/files/attributes-json.tpl b/files/backend-attributes-json.tpl similarity index 100% rename from files/attributes-json.tpl rename to files/backend-attributes-json.tpl diff --git a/main.tf b/main.tf index 4fc624b..20e8a63 100644 --- a/main.tf +++ b/main.tf @@ -214,10 +214,10 @@ resource "null_resource" "chef-prep" { EOF } } -# Chef provisiong attributes_json and dna.json templating -resource "template_file" "be-attributes-json" { +# Chef provisiong backend attributes_json and dna.json templating +resource "template_file" "backend-attributes-json" { count = "${var.chef_backend["count"]}" - template = "${file("${path.module}/files/attributes-json.tpl")}" + template = "${file("${path.module}/files/backend-attributes-json.tpl")}" vars { domain = "${var.domain}" host = "${format("%s-%03d", var.instance_hostname["backend"], count.index + 1)}" @@ -262,7 +262,7 @@ resource "aws_instance" "chef-backends" { provisioner "remote-exec" { inline = [ "cat > /tmp/dna.json < Date: Wed, 10 Aug 2016 14:38:59 -0700 Subject: [PATCH 2/2] changelog update - Adding `postgresql.md5_auth_cidr_addresses` to `chef-backend.rb` before joining cluster no longer breaks chef-backend - attributes-json.tpl -> backend-attributes-json.tpl for consistency --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a9af26..c9606f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ tf_hachef CHANGELOG This file is used to list changes made in each version of the tf_hachef Terraform plan. +v0.2.5 (2016-08-10) +------------------- +- Adding `postgresql.md5_auth_cidr_addresses` to `chef-backend.rb` before joining cluster no longer breaks chef-backend +- attributes-json.tpl -> backend-attributes-json.tpl for consistency + v0.2.4 (2016-08-10) ------------------- - Fix for #14