Issue #23056 has been updated by Josh Cooper. Tracker changed from Bug to Feature Subject changed from Package resource not utilizing uninstall_options to RPM package resource not utilizing uninstall_options Status changed from Unreviewed to Needs Decision Target version changed from 3.3.2 to 3.x
Hi Eric, as of today, only the `windows` and `openbsd` package providers support `uninstall_options`. See <http://docs.puppetlabs.com/references/latest/type.html#package-provider-features> I've switched this to a feature request and assigned to eric0. ---------------------------------------- Feature #23056: RPM package resource not utilizing uninstall_options https://projects.puppetlabs.com/issues/23056#change-99377 * Author: Eric Rinker * Status: Needs Decision * Priority: Normal * Assignee: * Category: package * Target version: 3.x * Affected Puppet version: 3.2.4 * Keywords: package uninstall_options * Branch: ---------------------------------------- I need to remove the mysql-libs package without removing its dependancies, which would be the following CLI command: rpm -e mysql-libs --nodeps --allmatches Inside my manifests, I have the following code: package { 'mysql-libs': ensure => 'absent', uninstall_options => [ '--allmatches', '--nodeps' ], } It fails with the following error: Error: Execution of '/bin/rpm -e mysql-libs-5.1.69-1.el6_4.x86_64' returned 1: error: Failed dependencies: libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 mysql-libs is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 Error: /Package[mysql-libs]/ensure: change from 5.1.69-1.el6_4 to absent failed: Execution of '/bin/rpm -e mysql-libs-5.1.69-1.el6_4.x86_64' returned 1: error: Failed dependencies: libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 mysql-libs is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 If I change ensure => 'purged', it removes the package and dependencies. Again, ignoring my uninstall_options setting. My systems are CentOS 6.4, running puppetlabs compiled puppet-3.2.4-1.el6.noarch RPMs. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
