Last active
August 29, 2015 14:22
-
-
Save cnk/3e7934c5e9982a1bb89f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the parent cookbook's attributes/default.rb: | |
default['dev-django-skeleton']['database']['host'] = "127.0.0.1" | |
In my wrapper cookbook's attributes/default.rb: | |
normal['dev-django-skeleton']['database']['host'] = "an RDS name" | |
In my kitchen.yml for the local Vagrant: | |
attributes: { dev-django-skeleton: { database: { host: "127.0.0.1" } } } | |
When I run 'kitchen converge'', this if statement is consistently evaluating to the RDS name: | |
if node['dev-django-skeleton']['database']['host'] == "127.0.0.1".... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changing line 5 to be default['dev-django-skeleton']['database']['host'] = "an RDS name" allows the kitchen.yml attributes to override the database host attribute