Dont worry about my error! I found it. Eventually! I was following this tutorial: http://www.how2centos.com/centos-6-puppet-install/
And somehow, during some copying and pasting the [puppetlabs] repo text, the line "Read more http://www.how2centos.com/centos-6-puppet-install/#ixzz2Cgm74wkh" ended up in my puppet.repo file and was throwing this error. So fixed now and seems I can installed repos. On Tuesday, 20 November 2012 21:15:13 UTC, Laurence Cope wrote: > > 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 I get Resource failed messages due to it being installed, or is > there a check to see if its installed, or am I using the wrong code? All > other code I found online gavce errors and does not even create it. > > Thanks > > class yum >> { >> define packages::repo_release ($source) { >> exec { $name: >> command =>"/bin/rpm -ivh ${source}", >> creates => "/etc/yum.repos.d/${name}.repo", >> } >> } >> >> packages::repo_release { "virtualmin": >> source => >> " >> http://software.virtualmin.com/bleed/centos/5/i386/virtualmin-bleed-release-1.0-1.rhel.noarch.rpm >> ", >> } >> } >> >> > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/LRBzpt0Vn8kJ. 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.