On Tue, Aug 30, 2011 at 11:07 AM, piavlo <[email protected]> wrote: > Hi Nan > > Adding > file { "/etc/yum.repos.d/${name}.repo": > ensure => file > } > took care of the problem. > > I still wonder if it should have worked without explicit file > resource? > Or "purge" is not supposed to be aware of other non file puppet > resources?
The purge attribute for file is only aware of file resources and not other puppet resources that creates a file. I suppose a feature request to patch yumrepo type to autocreate a file will resolve this issue, not sure if that has any undesirable side effects and that's a decision for Puppet's product manager. Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
