I tried fiddling around with a puppet module I am writing to install RPM's
both from repository as well as local resources (e.g. http) and tried the
advise noted by David Caro, but I'm still getting error messages:
Skipping.
Error: Nothing to do
returned 1: Cannot open:
On Tuesday, February 12, 2013 4:35:08 AM UTC-5, David Caro wrote:
>
>
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/4bd5e900-ff49-44f1-98ad-4529c46e0367%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.