puppet-server 2.7.19 on CentOS 6.3 x64 I have the follow very bsaic class, which I would expect to install the package if it''s not already present on the system: class yum::repos::puppetlabs { package { ''puppetlabs-release'': ensure => installed, source => ''http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm'', } } It doesn''t appear to use the source value, simply the package name in the yum command: err: /Stage[main]/Yum::Repos::Puppetlabs/Package[puppetlabs-release]/ ensure: change from absent to present failed: Execution of ''/usr/bin/yum -d 0 -e 0 -y install puppetlabs-release'' returned 1: Error: Nothing to do If I manually install with yum install http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm It works just fine. Any help appreciated. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/C52dHyFCxFYJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 03.09.2012 14:26, matonb wrote:> puppet-server 2.7.19 on CentOS 6.3 x64 > I have the follow very bsaic class, which I would expect to install the > package if it''s not already present on the system: > class yum::repos::puppetlabs { > package { ''puppetlabs-release'': > ensure => installed, > source => > ''http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm'', > } > } > It doesn''t appear to use the source value, simply the package name in > the yum command: > err: /Stage[main]/Yum::Repos::Puppetlabs/Package[puppetlabs-release]/ > ensure: change from absent to present failed: > Execution of ''/usr/bin/yum -d 0 -e 0 -y install puppetlabs-release'' > returned 1: Error: Nothing to do > If I manually install with > yum install > http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm > It works just fine. > Any help appreciated.I always recommend downloading and verifying installing such important packages manually and then deploy and install them as a file+package. Not using https here is just handing out your keys to any stranger on the net. Best Regards, David -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I believe it will work if you change the provider to rpm in this case (provider => rpm,). Mark On Monday, September 3, 2012 8:26:30 AM UTC-4, matonb wrote:> > puppet-server 2.7.19 on CentOS 6.3 x64 > > I have the follow very bsaic class, which I would expect to install the > package if it''s not already present on the system: > > class yum::repos::puppetlabs { > package { ''puppetlabs-release'': > ensure => installed, > source => '' > http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm > '', > } > } > It doesn''t appear to use the source value, simply the package name in the > yum command: > > err: /Stage[main]/Yum::Repos::Puppetlabs/Package[puppetlabs-release]/ > ensure: change from absent to present failed: > Execution of ''/usr/bin/yum -d 0 -e 0 -y install puppetlabs-release'' > returned 1: Error: Nothing to do > > If I manually install with > yum install > http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm > > It works just fine. > > Any help appreciated. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/zucqpv-FNXUJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Yes, this is correct. But note that rpm can''t do dependencies like yum - you will need to install the dependencies by hand using other package{} declarations and use requires=> On 03/09/12 14:36, Mark Roggenkamp wrote:> I believe it will work if you change the provider to rpm in this case > (provider => rpm,). > > Mark > > On Monday, September 3, 2012 8:26:30 AM UTC-4, matonb wrote: > > puppet-server 2.7.19 on CentOS 6.3 x64 > I have the follow very bsaic class, which I would expect to install > the package if it''s not already present on the system: > class yum::repos::puppetlabs { > package { ''puppetlabs-release'': > ensure => installed, > source => > ''http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm > <http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm>'', > } > } > It doesn''t appear to use the source value, simply the package name > in the yum command: > err: /Stage[main]/Yum::Repos::Puppetlabs/Package[puppetlabs-release]/ > ensure: change from absent to present failed: > Execution of ''/usr/bin/yum -d 0 -e 0 -y install puppetlabs-release'' > returned 1: Error: Nothing to do > If I manually install with > yum install > http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm > <http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm> > It works just fine. > Any help appreciated. > > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/zucqpv-FNXUJ. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mon, Sep 03, 2012 at 05:26:30AM -0700, matonb wrote:> puppet-server 2.7.19 on CentOS 6.3 x64 > > I have the follow very bsaic class, which I would expect to install the > package if it''s not already present on the system: > > class yum::repos::puppetlabs { > package { ''puppetlabs-release'': > ensure => installed, > source => > ''http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm'', > } > } > It doesn''t appear to use the source value, simply the package name in the > yum command: > > err: /Stage[main]/Yum::Repos::Puppetlabs/Package[puppetlabs-release]/ > ensure: change from absent to present failed: > Execution of ''/usr/bin/yum -d 0 -e 0 -y install puppetlabs-release'' > returned 1: Error: Nothing to do > > If I manually install with > yum install > http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm > > It works just fine. > > Any help appreciated. >The package type actually has a lot of parameters that are only used by a subset of all providers. Like "category" is only used on gentoo (i guess) and "adminfile" is a solaris pkgadd specific. If you think that source should not only be respected by the rpm provider but also in the yum provider you should file a feature request: http://projects.puppetlabs.com/issues -Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
As I''ve seen in the code, th eyum provider passes the name of the package to yum, so instead of using source you should use name: class yum::repos::puppetlabs { package { ''puppetlabs-release'': ensure => installed, name => '' http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm '', } } that should work. On Monday, September 3, 2012 2:26:30 PM UTC+2, matonb wrote:> > puppet-server 2.7.19 on CentOS 6.3 x64 > > I have the follow very bsaic class, which I would expect to install the > package if it''s not already present on the system: > > class yum::repos::puppetlabs { > package { ''puppetlabs-release'': > ensure => installed, > source => '' > http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm > '', > } > } > It doesn''t appear to use the source value, simply the package name in the > yum command: > > err: /Stage[main]/Yum::Repos::Puppetlabs/Package[puppetlabs-release]/ > ensure: change from absent to present failed: > Execution of ''/usr/bin/yum -d 0 -e 0 -y install puppetlabs-release'' > returned 1: Error: Nothing to do > > If I manually install with > yum install > http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-5.noarch.rpm > > It works just fine. > > Any help appreciated. >-- 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+unsubscribe@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.