Hey there,

If you're going through all that, and are trying to get a purge-able
directory of resources, would you find it easier to declare the
/etc/yum.repos.d directory with purge => true, and then declare your repos
as file declarations? An exec of 'yum -makecache' set to refreshonly =>
true could be notified by each file resource.

Does that help get what you need?

On Monday, January 23, 2012, Dan White <y...@comcast.net> wrote:
> I was working with yumrepo, defining new entried and seeing them appear
in /etc/yum.repos.d
>
> After considerable tinkering, and with the sad discovery that resource {
'yumrepo': purge => true } does not work,
> I moved my working /etc/yum.repos.d to /etc/yum.repos.d-old and re-ran my
catalog.
>
> To my surprise, the repo entried were appended to /etc/yum.conf
>
> Long story short:
> I needed to add
>    file { '/etc/yum.repos.d': ensure => directory, }
>  --  require => File["/etc/yum.repos.d"] -- was added to eack yumrepo
resource
> AND "reposdir=/etc/yum/repos.d" explicitly set in /etc/yum.conf
> to get what I wanted.
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.”
> Bill Waterson (Calvin & Hobbes)
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 

Gary Larizza
Professional Services Engineer
Puppet Labs

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to