Re: [Puppet Users] How do I enable repositories and install packages
If you want to enable the repositories on a per-package basis as was shown in the examples (with the --enablerepo flag), then you'll definitely want to watch & vote for #4113[1]. If you want to have the repositories always enabled, then you should be able to do that through the yum configuration. I'm not all that familiar with the details though since I've tended not to use the RPM based systems. [1] http://projects.puppetlabs.com/issues/4113 -- Jacob Helwig On Wed, 01 Jun 2011 09:31:51 -0700, Nathan Clemons wrote: > > The package resource type will allow you to install packages via Yum, but > does not (last I checked) support specifying repos to enable/disable (which > I'd dearly love if it was added). > > Which means you either get to write your own extension to package to add > that functionality, or use exec. > > -- > Nathan Clemons > http://www.livemocha.com > The worlds largest online language learning community > > On Wed, Jun 1, 2011 at 9:19 AM, hyzhang wrote: > > > Hi, > > > > My shell script is as below. How do I translate them to puppet > > language? I think I can use exec directly. But is there a better way? > > > > /usr/bin/yum clean all > > /bin/echo -e "\n/usr/bin/yum -y --enablerepo=base,rpmforge install > > mplayer mplayer-skins" > > /usr/bin/yum -y --enablerepo=base,rpmforge install mplayer mplayer- > > skins > > > > /usr/bin/yum clean all > > /bin/echo -e "\n/usr/bin/yum -y --nogpgcheck install RealPlayer > > AdobeReader_enu flash-plugin" > > /usr/bin/yum -y --nogpgcheck install RealPlayer AdobeReader_enu flash- > > plugin > > > > /usr/bin/yum clean all > > /bin/echo -e "\n/usr/bin/yum -y --enablerepo=base install pidgin" > > /usr/bin/yum -y --enablerepo=base install pidgin > > > > Thanks, > > -Haiyan > > signature.asc Description: Digital signature
Re: [Puppet Users] How do I enable repositories and install packages
The package resource type will allow you to install packages via Yum, but does not (last I checked) support specifying repos to enable/disable (which I'd dearly love if it was added). Which means you either get to write your own extension to package to add that functionality, or use exec. -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community On Wed, Jun 1, 2011 at 9:19 AM, hyzhang wrote: > Hi, > > My shell script is as below. How do I translate them to puppet > language? I think I can use exec directly. But is there a better way? > > /usr/bin/yum clean all > /bin/echo -e "\n/usr/bin/yum -y --enablerepo=base,rpmforge install > mplayer mplayer-skins" > /usr/bin/yum -y --enablerepo=base,rpmforge install mplayer mplayer- > skins > > /usr/bin/yum clean all > /bin/echo -e "\n/usr/bin/yum -y --nogpgcheck install RealPlayer > AdobeReader_enu flash-plugin" > /usr/bin/yum -y --nogpgcheck install RealPlayer AdobeReader_enu flash- > plugin > > /usr/bin/yum clean all > /bin/echo -e "\n/usr/bin/yum -y --enablerepo=base install pidgin" > /usr/bin/yum -y --enablerepo=base install pidgin > > Thanks, > -Haiyan > > -- > 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. > > -- 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.