Environment specific Chef databags -
i'm trying determine best method databags, hold-up being don't see why can't include single databag containing per environment. i'm finding having individual databags cookbooks seems norm.
my initial understanding this:
dev.json
- mysql_password: 234983 - mysql_user: heyhey - mysql_host: somewhere.com - newrelic_api:
uat.json
- mysql_password: 111113 - mysql_user: root - mysql_host: somewhere-else.com - newrelic_api: something-else
attributes/default.rb
- load <chef-env> databag - mysql_password = databag.item.mysql_password
is bad method or caveats doing way?
Comments
Post a Comment