- From: <
>
- To:
- Subject: [chef] Re: Re: Re: Inserting files into templates
- Date: Thu, 9 Jan 2014 13:52:12 -0800 (PST)
Hi Nick,
I've gotten it to work like so (suggested by Jek):
template node['myapp']['path'] + '/config.php' do
source 'config.php.erb'
mode 0755
owner 'root'
group 'root'
variables(
:password => node['myapp']['password'],
:my_file => File.read(my_file)
end
In my case the content of my_file was just one line containing a single value,
but I suspect you'll be able to get similar results with a whole file.
- [chef] Re: Re: Re: Inserting files into templates, opscode, 01/09/2014
Archive powered by MHonArc 2.6.16.