[Puppet Users] Re: optimize my configuration

2017-02-28 Thread puppetstan
thanks, i think the local repository is the best choice...i create it with createrepo regards Le mardi 14 février 2017 15:09:23 UTC+1, jcbollinger a écrit : > > > > On Monday, February 13, 2017 at 10:51:42 AM UTC-6, puppetstan wrote: >> >> thanks for your answer >> >> But with this conf, my pac

[Puppet Users] Re: optimize my configuration

2017-02-14 Thread jcbollinger
On Monday, February 13, 2017 at 10:51:42 AM UTC-6, puppetstan wrote: > > thanks for your answer > > But with this conf, my package package-5.0.el6.noarch.rpm is automatically > downloaded even if my package version is 5.0. So it's my problem. I don't > want downloaded package package-5.0.el6.no

[Puppet Users] Re: optimize my configuration

2017-02-13 Thread puppetstan
thanks for your answer But with this conf, my package package-5.0.el6.noarch.rpm is automatically downloaded even if my package version is 5.0. So it's my problem. I don't want downloaded package package-5.0.el6.noarch.rpm if my version package is 5.0... file { "/tmp/package-5.0.el6.noarch.rpm

[Puppet Users] Re: optimize my configuration

2017-02-13 Thread Michael Watters
ensure => '5.0' should work but you may want to add a dependency to the package resource to ensure that the file is downloaded first. package { "package": ensure => '5.0', provider => 'rpm', source => '/tmp/package-5.0.el6.noarch.rpm', require => File['/tmp/package-5.0.el6.noarch.