I have this same need. In my case it's yum repo files that I want to ensure are ONLY what puppet manages (we occasional haven brazen users drop repo's on boxes, and cause big headaches down that road). Our environment is complex enough that repo's don't come from a single file, but from disparate modules and classes. When I tell puppet to manage /etc/yum.repos.d/ with purge => true, it seems to remove every repo, then re-add them later in its run.
-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a6a78d34-4d2b-49d7-8a91-d47cfa61e54c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.