nothings_absolute
2009-Feb-03 18:51 UTC
[Puppet Users] Excluding .svn directories with recursive file management
Hello, I have a directory with subdirectories and files managed by puppet and keep all contents in subversion. I use a subversion tag to check these files out as my source on the puppet master. I then have a class set up to manage the base directory using the recusive option. The problem is that puppet copies all of the .svn subdirectories too. Does anyone know of a way to exclude these from the copy? --~--~---------~--~----~------------~-------~--~----~ 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-03 22:41 UTC
[Puppet Users] Re: Excluding .svn directories with recursive file management
> The problem is that puppet copies all of the .svn subdirectories > too. Does anyone know of a way to exclude these from the copy?I was curious about this too. I was just doing an "svn export" but I''d love to see a real fix. Scott --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier
2009-Feb-03 23:04 UTC
[Puppet Users] Re: Excluding .svn directories with recursive file management
Hi>> The problem is that puppet copies all of the .svn subdirectories >> too. Does anyone know of a way to exclude these from the copy? > > I was curious about this too. I was just doing an "svn export" but I''d > love to see a real fix.you can do a general exclude on top of your manifests. like: http://git.black.co.at/?p=manifests;a=blob;f=manifests/common.pp;h=f8d80b20a3570135d958964e3df2e6f93cd4ca8d;hb=a3cadeb33161169ce8743cd77a4a3cd8d38715c8 However as the ignore is a regexp. You should acutally do ignore => ''\.svn'' cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
chakkerz
2009-Feb-04 04:18 UTC
[Puppet Users] Re: Excluding .svn directories with recursive file management
My file section that does this looks like:
file
{ "/var/bb/$bbVersion":
path => "/var/bb/$bbVersion",
owner => bb,
group => bb,
mode => 775,
recurse => true,
source => "puppet:///bigbrother/
$bbVersion.generic",
require => [ file["/var/bb"],
user["bb"] ],
ignore => ".svn"
}
Note the ignore ... though i really don''t think i''m adding to
Pete''s
post :)
cheers
chakkerz
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---