Skip to content

Commit

Permalink
Merge pull request #15 from mengesb/accept_license
Browse files Browse the repository at this point in the history
Fixed accept_license
  • Loading branch information
mengesb committed May 26, 2016
2 parents 9235366 + eb61a72 commit c32dfa3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ tf_chef_compliance CHANGELOG

This file is used to list changes made in each version of the tf_chef_compliance Terraform plan.

v0.1.5 (2016-05-25)
-------------------
- [Brian Menges] - Correct `accept_license` in [attributes-json.tpl](files/attributes-json.tpl)
- [Brian Menges] - Remove legacy `touch .license.accepted` remote-exec

v0.1.4 (2016-05-25)
-------------------
- [Brian Menges] - Correct [CHANGELOG.md](CHANGELOG.md)
Expand Down
3 changes: 1 addition & 2 deletions files/attributes-json.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fqdn": "${host}.${domain}",
"chef-compliance": {
"accept_license": "${license}",
"accept_license": ${license},
"configuration": {
"compliance_fqdn": "${host}.${domain}",
"ssl": {
Expand All @@ -21,4 +21,3 @@
},
"tags": []
}

6 changes: 0 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@ resource "aws_instance" "chef-compliance" {
"sudo mv .compliance/${var.hostname}.${var.domain}.* /var/opt/chef-compliance/ssl",
"sudo chown -R root:root /etc/chef-compliance /var/opt/chef-compliance/ssl",
]
}
# Accept license
provisioner "remote-exec" {
inline = [
"sudo touch /var/opt/chef-compliance/.license.accepted"
]
}
# Provision with Chef
provisioner "chef" {
Expand Down

0 comments on commit c32dfa3

Please sign in to comment.