Globally ignore .svn

29 views
Skip to first unread message

Brian Wilkins

unread,
Aug 7, 2014, 9:10:11 AM8/7/14
to puppet...@googlegroups.com
In Puppet 3.6.2, how do you globally ignore .svn directories? Links on the internet state to put File { ignore => '.svn' } in site.pp but that does not work. I tried putting it in nodes.pp, but I receive the error: "Invalid parameter ignore on File[etc_facter_folder] at <path to manifest> on node <hostname>"


Garrett Honeycutt

unread,
Aug 7, 2014, 6:11:41 PM8/7/14
to puppet...@googlegroups.com
Hi Brian,

Putting that in your site.pp should do it. Perhaps you are using the
wrong site.pp.

I use the following


# Ignoring version control artifacts
File {
backup => 'main',
ignore => [ '.svn',
'.git',
'CVS',
'.bzr' ],
}

https://github.com/transforia/puppet-modules/blob/master/manifests/site.pp#L7-14

Best regards,
-g

--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

Brian Wilkins

unread,
Aug 7, 2014, 6:34:38 PM8/7/14
to puppet...@googlegroups.com
Hmm, it's working now! Thanks
Reply all
Reply to author
Forward
0 new messages