[Puppet Users] Re: how to write a loop to convert all erb files to regular file?

2015-10-21 Thread yi zhao
s.each |String $binary| { file {"/usr/bin/$binary": ensure => link, target => "/opt/puppetlabs/bin/$binary", }} On Tuesday, October 20, 2015 at 5:23:13 PM UTC-7, yi zhao wrote: > > Hi, > so we have a few template setup under my_module/templates

[Puppet Users] Re: how to write a loop to convert all erb files to regular file?

2015-10-21 Thread yi zhao
Error 400 on SERVER: Syntax error at '=>' at /etc/puppetlabs/code/environments/production/modules/exadata/manifests/init.pp:152:15 on node node1.example.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run On Tuesday,

[Puppet Users] how to write a loop to convert all erb files to regular file?

2015-10-20 Thread yi zhao
Hi, so we have a few template setup under my_module/templates/ like create_pre_rac_setup.sh.erb run_this_rac.sh.erb and I write someting in init.pp $db_setup_home = "$dbnamehome/dbs/create_$dbname" file { "$db_setup_home/create_pre_rac_setup_$dbname.sh": ensure => 'file',