[Puppet Users] How do you install a yum repo?

2012-11-20 Thread Laurence Cope
Hi I am trying to install a yum repo using puppet, so they can install a package. But i am struggling. I cannot find much help online at all. The only code I got working was as follows, but it works first time, but additional times it gives an error due to it being installed. Does it matter

Re: [Puppet Users] How do you install a yum repo?

2012-11-20 Thread Matthaus Owens
There is a built in Puppet type for yum repos. The docs for it are here: http://docs.puppetlabs.com/references/latest/type.html#yumrepo You could also use a package resource with a sourch of the rpm, something like... package {virtualmin: ensure = present, source =

Re: [Puppet Users] How do you install a yum repo?

2012-11-20 Thread Stephen Price
This is an aside, but you should really be using gpgcheck. I define repositories with yumrepo, but I also have a separate file resource to copy the gpgkey to a local directory and set the appropriate yumrepo parameters. On Tuesday, November 20, 2012 1:22:55 PM UTC-8, pmbuko wrote: On Nov 20,