- From: Darron Froese <
>
- To:
- Subject: [chef] Trying to leave some Ruby inside a finished installed Chef template.
- Date: Wed, 9 Jan 2013 14:40:55 -0700
Have a rails database.yml installed via chef:
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: gitlabhq_production
pool: 5
username: <%= ENV['PROD_DB_USER'] %>
password: <%= ENV['PROD_DB_PASSWORD'] %>
I want to to look like this when it's installed - but Chef is
rendering the ENV vars during the install.
I'd rather not have that done - just like to use the ENV variables the
whole time.
I'd really like chef to just install this - treat is as a text file
and just install. Is that possible?
Any tips? I've looked through the Chef and Erubis docs as well as done
lots of Googling.
Also posted here:
https://gist.github.com/4496942
- [chef] Trying to leave some Ruby inside a finished installed Chef template., Darron Froese, 01/09/2013
Archive powered by MHonArc 2.6.16.