Thanks for the suggestion Michael, but I am not able to control what
yum repos are in the directory.  This is more of a check to make sure
if a repo is there and is enabled that the gpgcheck is also enabled.

John

On Mar 23, 4:08 pm, Michael DeHaan <mich...@reductivelabs.com> wrote:
> On Tue, Mar 23, 2010 at 10:21 AM, jsearles <jsear...@gmail.com> wrote:
> > Hello,
>
> > I am trying to check for each enabled repo in /etc/yum.repos.d/ that
> > the gpgcheck  is set to 1.  I wanted to do this with Augeas, but I
> > cant seem to get it to work.  I tried something like the following but
> > it does not work.
>
> >       augeas{ "/etc/yum.repos.d-gpgcheck" :
> >                context => "match /files/etc/yum.repos.d//*[enabled
> > ='1']",
> >                changes => "set gpgcheck 1",
> >        }
>
> > Anyone have any ideas on how to accomplish this?
>
> Hi John,
>
> Have you seen 
> this...http://docs.reductivelabs.com/references/stable/type.html#yumrepo?
>
> You may want to manage all yum repos with puppet and use 'purge' to remove
> repos that aren't puppet managed (that are user created outside of Puppet),
> making sure you include the repos you need from the distribution.
>
> --Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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