package { “xyz”:
ensure => latest,
enablerepo => “epel”, }
yum -y --enablerepo=epel install xyz.
So can use "Exec" just for enabling repo and then you can use package resource to install package.
I hope this should work.require => Exec['toto'],
If i want upgrade package is not possible because the upgrade option in yum does not work --
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/5ejsIE5EFww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
An other idea is modifiy repo and change enabled=0 by enabled=1 and after install or update modify enabled=0 by enabled=1 ? Your opinion?
Regards and thanks
[dag]
gpgcheck=0
enabled=1
name=$releasever-$basearch on dag
baseurl=http://serveurdags/RPMS.dag/
Le vendredi 13 septembre 2013 17:23:32 UTC+2, puppetstan a écrit :Hi
I would like to use enablerepo option for activate repo and verify package latest version
my manifest :
package { "fusioninventory-agent": ensure => latest, enablerepo => [ "epel", "remi" ]; }
there this patch : http://projects.puppetlabs.com/issues/2247 but it does not work in my configuration
Can you have the same problem or an other solution to activate multiple rpm repo with enablerepo command?
regards
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/5ejsIE5EFww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
--