Hi, exec { 'fusioninventory-agent': command => 'yum -y install fusioninventory-agent --enablerepo=epel', path => '/usr/bin', }
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/ > This will solve your issue. but as you have baseurl , why don't you try source => http://serveurdags/RPMS.dag/ in package resource. like : package { "fusioninventory-agent": ensure => 'latest', source => 'http://serveurdags/RPMS.dag/',} Please have look in to more attributes of Package resource. Refer the link : http://docs.puppetlabs.com/references/latest/type.html#package-attribute-source > 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+unsubscr...@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > On Wed, Sep 25, 2013 at 1:06 PM, puppetstan <stanislas.lev...@gmail.com>wrote: > Hi Sneha > > Thanks a lot for your configuration but this solution is only good if i > know latest version, but if i know, i'm oblige to modify all the time the > configuration when there a new version but if i don't know latest version > this solution is not possible... > > 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<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+unsubscr...@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.