Hi all, I''ve downloaded and installed puppet-concat module and was trying to use it. After reading doc, I''ve set concatdir to /tmp only for test purpose, but I''m wondering what is a good value for concatdir. Maybe /var/lib/puppet/concat? I guess I have to create it, am I right? So, following the example at github, I''ve created some code like: class common::sudo { include concat::setup concat::fragment{''test_2'' : target => ''/etc/sudoers'' , content => "test"; } } And then: node ''Node'' { class { ''common::sudo'' : ; } } But I get the error: err: Failed to apply catalog: Could not find dependent Exec[concat_/etc/sudoers] for File[/tmp/_etc_sudoers/fragments/10_test_2] at /etc/puppet/modules/concat/manifests/fragment.pp:48 What am I doing wrong? Anyone has seen this error before? TIA, Arnau -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
----- Original Message -----> Hi all, > > I''ve downloaded and installed puppet-concat module and was trying to > use it. > > After reading doc, I''ve set concatdir to /tmp only for test purpose, > but I''m wondering what is a good value for concatdir. > Maybe /var/lib/puppet/concat? I guess I have to create it, am I > right? > > So, following the example at github, I''ve created some code like: > > class common::sudo { > include concat::setup > concat::fragment{''test_2'' : > target => ''/etc/sudoers'' , > content => "test"; > } > } > > And then: > > node ''Node'' { > class { > ''common::sudo'' : ; > } > }you''re missing the concat{"/etc/sudoers": } # set up a file for being managed by snippets concat{"somefile": } # add a snippet to it: concat::fragment{"foo":.....} needs both -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Wed, 02 Nov 2011 11:22:05 -0000 (GMT) R.I.Pienaar R.I.Pienaar wrote:> you''re missing the concat{"/etc/sudoers": } > > # set up a file for being managed by snippets > concat{"somefile": } > > # add a snippet to it: > concat::fragment{"foo":.....} > > needs bothsolved. Thanks ! Arnau -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.