2012/1/25 Juan José Presa Rodal <juan...@gmail.com>: > Hi, I would like to achieve a conditional file replacement but lightly > different. I deploy recusively a directory with a lot of config files. This > is my resource: > > file {"/foo": > ensure => directory, > recurse => remote, > source => "puppet:///modules/module_name/configs/${hostname}/foo", > ignore => ["no_replace1.cfg","no_replace2.cfg"], > } > > I need to ignore these two files because they will not be puppet managed but > initializated by puppet.
A recursive file resource is "less specific" than a file resource managing an individual file. If you install those two configuration files with `file { ".../no_replace1.cfg": ensure => present, ... }`, Puppet will put them in place if they are missing, but otherwise ignore their content. It will also prevent the recurse from overwriting them. -- Daniel Pittman ⎋ Puppet Labs Developer – http://puppetlabs.com ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.