Hi All, I'm new to puppet and I'm having some difficulty enabling and disabling yum repositories on an as needed basis and I was wondering if you all might be able to provide me with some assistance. I've been able to get puppet to configure a yum repository, I'm going to use EPEL as an example here but I'd like it for all, by creating a class called epel.pp containing
class epel { yumrepo { "epel": descr => "Extra Packages for Enterprise Linux \$releasever - \$basearch", baseurl => "http://mirror.its.sfu.ca/mirror/CentOS-Third-Party/epel/\$releasever/\$basearch", gpgcheck => 1, gpgkey => "http://mirror.its.sfu.ca/mirror/CentOS-Third-Party/epel/RPM-GPG-KEY-EPEL", enabled=0 } } and it does create and populate the /etc/yum.repos.d/epel.repo file with this information. Now I want to be able to install ganglia-gmond automatically from this repository but I can't figure out how to enable and disable the repo afterwards? Can anyone please provide an example of how something like this may be accomplished? -- James A. Peltier IT Services - Research Computing Group Simon Fraser University - Burnaby Campus Phone : 778-782-6573 Fax : 778-782-3045 E-Mail : jpelt...@sfu.ca Website : http://www.sfu.ca/itservices http://blogs.sfu.ca/people/jpeltier -- 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.