On Tue, Nov 8, 2011 at 4:21 PM, Neal <[email protected]> wrote: > Hi All, > I have two yumrepos configured: > > class yumrepos { > yumrepo { 'RHEL6.1_Repo': > baseurl => 'http://hostname.domain.com/rhel6', > descr => 'Internal RHEL6.1 Repository', > enabled => '1', > gpgcheck => '0', > } > yumrepo { 'Company_EL6_Repo': > baseurl => 'http://hostname.domain.com/repo.el6', > descr => 'Company EL6 Repository', > enabled => '1', > gpgcheck => '0', > } > } > > the job reports as running correctly and I get: > > Yumrepo[RHEL6.1_Repo] (/etc/puppetlabs/puppet/modules/yumrepos/ > manifests/init.pp:7) > Yumrepo[Company_EL6_Repo] (/etc/puppetlabs/puppet/modules/yumrepos/ > manifests/init.pp:13) > > in my event log, but the repos are not correctly added to the node. > > I have run yum clean all and yum makecache, and also removed the class > from the node and re-added it, and still get the same output. This is > on PE 1.2 evaluation running on a single RHEL6.1 node (master + > agent). > > The only thing I get in the log is Finished catalog run in 0.61 > seconds since Puppet doesn't see the repos as "changed" even though > they are missing. > > Do I need to manually create the files underneath /etc/yum.repos.d? > That is fine but I don't see that in the docs. Can anyone tell what I > am doing wrong? >
I ran your file locally and had it work fine. The Yumrepo type will create the files in /etc/yum.repos.d. Are you positive you are including the class that contains these resources? I made a file called foo.pp with the manifest you provided. At the bottom I added the line include yumrepos Then I ran puppet apply --verbose foo.pp After that, I had the files configured the way I would expect. There are several possibility for what could be problematic, but I'm sure exactly where to start. I often blame SELinux and iptables ;) Could you run in debug or verbose mode? Are you classifying in the dashboard only? -- 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.
