Hi
This configuration is not good if fusioninventory-agent is installed and
puppet want to verify the latest version because yum command option is
"install" and not "update" . This configuration is only good if
fusioninventory-agent is not installed.
exec { 'fusioninventory-agent':
command => 'yum -y *install *fusioninventory-agent --enablerepo=*',
path => '/usr/bin',
}
package { 'fusioninventory-agent':
ensure => latest,
require => Exec['fusioninventory-agent'],
}
This configuration is not good if fusioninventory-agent is not installed
and puppet want to verify fusioninventory-agent is present because yum
command option is "update" and not "install" . This configuration is only
good if fusioninventory-agent is installed.
exec { 'fusioninventory-agent':
command => 'yum -y *update *fusioninventory-agent --enablerepo=*',
path => '/usr/bin',
}
package { 'fusioninventory-agent':
ensure => latest,
require => Exec['fusioninventory-agent'],
}
What is the solution, an idea?
Regards
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 the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.