Scott Beardsley
2009-Feb-25 22:08 UTC
[Puppet Users] Re: shorewall module and svn directories
BTW, I noticed that .svn directories were being copied to /var/lib/puppet. Here is a trivial patch to prevent that behavior... $ diff /tmp/init.pp modules/shorewall/manifests/init.pp 65a66> ignore => ".svn"--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Scott Beardsley
2009-Feb-25 22:42 UTC
[Puppet Users] Re: shorewall module and svn directories
On Wed, Feb 25, 2009 at 2:08 PM, Scott Beardsley <sc0ttbeardsley@gmail.com> wrote:> BTW, I noticed that .svn directories were being copied to > /var/lib/puppet. Here is a trivial patch to prevent that behavior... > > $ diff /tmp/init.pp modules/shorewall/manifests/init.pp > 65a66 >> ignore => ".svn"Doh, actually the above patch didn''t fix it. I had to modify the common module instead (BTW, I''m not sure the escape character for the period is necessary or not): $ svn diff modules/common/ Index: modules/common/manifests/init.pp ==================================================================--- modules/common/manifests/init.pp (revision 125) +++ modules/common/manifests/init.pp (working copy) @@ -8,7 +8,7 @@ "/var/lib/puppet/modules": ensure => directory, source => "puppet://$server/common/modules/", - ignore => ''\.ignore'', + ignore => [''\.ignore'',''\.svn''], recurse => true, purge => true, force => true, mode => 0755, owner => root, group => 0; } Index: modules/common/manifests/defines/concatenated_file.pp ==================================================================--- modules/common/manifests/defines/concatenated_file.pp (revision 125) +++ modules/common/manifests/defines/concatenated_file.pp (working copy) @@ -32,7 +32,7 @@ $dir_real: source => "puppet://$server/common/empty", checksum => mtime, - ignore => ''\.ignore'', + ignore => [''\.ignore'',''\.svn''], recurse => true, purge => true, force => true, mode => $mode, owner => $owner, group => $group, notify => Exec["concat_${name}"]; --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---