Thanks, that fixed it. On Jul 9, 5:10 pm, Alan Barrett <a...@cequrux.com> wrote: > On Fri, 09 Jul 2010, Tim wrote: > > # Generic config file > > define config-file ($fullpath, $source) { > > if $require { > > require $require > > } > > file { $fullpath: > > source => "puppet://puppet.hq.eso.org/modules/${source}", > > backup => mainbackup, > > mode => 644, > > ensure => file, > > group => root, > > owner => root > > } > > } > > Just delete the "if" statement and the explicit "require" statement, and > the right thing should happen. Any "require" passed to your definition > should propagate to the "file" resource insuide the definition > automatically. > > --apb (Alan Barrett)
-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.