Thanks a lot for your answer but i don't know configure it with no 
package...actually my configuration is this :


class fusioninventory-agent::redhat {

package { "fusioninventory-agent": ensure => latest}

#exec { 'fusioninventory-agent':
#  command => 'yum -y install fusioninventory-agent --enablerepo=*',
#  path => '/usr/bin',
#}

#package { 'fusioninventory-agent':
#                 ensure => latest,
#                require => Exec['fusioninventory-agent'],
#        }


file { '/etc/sysconfig/fusioninventory-agent':
                        ensure => present,
                        owner => 'root',
                        group => 'root',
                        mode => 0644,
                        content => 
template("/etc/puppet/modules/fusioninventory-agent/templates/fusioninventory-agent.erb"),
                        require => Package["fusioninventory-agent"],
                        notify => Service["fusioninventory-agent"]
        }


service { 'fusioninventory-agent':
                        ensure => running,
                        hasstatus => false,
                        hasrestart => false,
                        enable => true,
                        require => 
File['/etc/sysconfig/fusioninventory-agent']
        }
}


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