install_options fails for rpm provider

130 views
Skip to first unread message

zerozer...@gmail.com

unread,
Feb 6, 2014, 6:44:53 AM2/6/14
to puppet...@googlegroups.com
Hi,
AFAICT from the docs <http://docs.puppetlabs.com/references/latest/type.html#package-provider-features>, when using a "package" resource with the rpm provider, the install_options attribute should be allowed.
But it seems it is not taken into account here.

I have a resource like this:

  package { "PEAR::XML_Serializer":
    source => "/root/packages/PEAR::XML_Serializer-0.18.0-1.noarch.rpm",
    install_options => [ "--nodeps", "--force" ]
  }

But puppet fails and I get this error in the log:

err: /Package[PEAR::XML_Serializer]/ensure: change from absent to present failed: Execution of '/bin/rpm -i --oldpackage /root/packages/PEAR::XML_Serializer-0.18.0-1.noarch.rpm' returned 1: error: Failed dependencies:
PEAR::XML_Util >= 1.1.1 is needed by PEAR::XML_Serializer-0.18.0-1.noarch

Any clues?

Thanks.
Marco

zerozer...@gmail.com

unread,
Feb 6, 2014, 8:03:46 AM2/6/14
to puppet...@googlegroups.com
On Thursday, February 6, 2014 12:44:53 PM UTC+1, zerozer...@gmail.com wrote:
 
AFAICT from the docs <http://docs.puppetlabs.com/references/latest/type.html#package-provider-features>, when using a "package" resource with the rpm provider, the install_options attribute should be allowed.
But it seems it is not taken into account here.

Oh… sorry, I've just discovered that this feature is a very recent addition, introduced in Puppet 3.4.0.
Now I need to find out if I can update my master from 3.3.2 and my clients from 2.7.23 (I don't know why they are provisioned with this version installed by default).

Marco
Reply all
Reply to author
Forward
0 new messages