Hi,
 I understood the problem,
You may try following things.
Just try running the commnad -> yum -y *install *fusioninventory-agent
--enablerepo=epel
And check whether its installing latest version or not.
1. If it is installing latest version then just use this in manifest:
exec { 'fusioninventory-agent':
 command => 'yum -y *update *fusioninventory-agent --enablerepo=*',
 path => '/usr/bin',
}
Dont use Package resource again.
Because it also does the same as yum command.

2. If it is not installing latest version and if you know the latest
version then specify that in your command, like
yum -y *install *fusioninventory-agent-1.2.0 --enablerepo=epel (here i have
assumed 1.2.0 as latest version )
And use just
exec { 'fusioninventory-agent':
 command => 'yum -y *update *fusioninventory-agent-1.2.0 --enablerepo=epel',
 path => '/usr/bin',
}
Do not use Package resource again.

I hope this will help you.

Thanks & Regards
Sneha More


On Mon, Sep 23, 2013 at 3:46 PM, puppetstan <stanislas.lev...@gmail.com>wrote:

> 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<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.

Reply via email to