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 <hyzh...@jcvi.org> 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.

Reply via email to