I'm trying to uninstall packageA
with puppet, however puppet doesn't uninstall.
My package resource looks like this:
package {
'packageA':
ensure => absent,
provider => rpm,
alias => 'packageA',
name => 'packageA',
uninstall_options => ['--nodeps'],
}
Here are the --debug
puppet logs for that package:
Debug: /Package[packageA]: Provider rpm does not support features targetable; not managing attribute command
Debug: Executing: '/bin/rpm --version'
Debug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' | sort'
Debug: Executing: '/bin/rpm -q packageA --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing: '/bin/rpm -q packageA --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Debug: /Package[packageA]: Nothing to manage: no ensure and the resource doesn't exist
I don't see puppet executing rpm -e --nodeps packageA
anywhere. Am I missing something?
Please note that if I have rpm -e packageA --nodeps
in an exec
resource, it uninstalls the package. But I'd like to know what's wrong with the package resource above.
Thanks in advance.