Issue #23056 has been reported by Eric Rinker.
----------------------------------------
Bug #23056: Package resource not utilizing uninstall_options
https://projects.puppetlabs.com/issues/23056
* Author: Eric Rinker
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category: package
* Target version: 3.3.2
* 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.