----- Original Message ----- | Hi,
| My brain is hurting a bit over this one. How does one delete ypbind | cleanly from a RHEL6 box? It has a dep of yp-tools. No problem...I | add both to the uninstall list in hiera; | packages_oel6_absent: | <snip> | - ypbind | - yp-tools | SNIP from manifest; | $packagesabsent = hiera("${packages_key}_absent",'nil') | if $packagesabsent != 'nil' { | package { $packagesabsent: | ensure => absent, | } | Works a treat for all other packages removing cleanly, apart from | these two. | Here's the error when I add both programs to the delete list; | err: /Stage[main]/Axx_packages/Package[yp-tools]/ensure: change from | 2.9-12.el6 to absent failed: Execution of '/bin/rpm -e | yp-tools-2.9-12.el6.x86_64' returned 1: error: Failed dependencies: | yp-tools is needed by (installed) ypbind-3:1.20.4-29.el6.x86_64 | err: /Stage[main]/Axx_packages/Package[ypbind]/ensure: change from | 1.20.4-29.el6 to absent failed: Execution of '/bin/rpm -e | ypbind-1.20.4-29.el6.x86_64' returned 1: error: Failed dependencies: | ypbind is needed by (installed) yp-tools-2.9-12.el6.x86_64 | If I only state one of the packages for removal....I only get one of | the errors. | I read some historical threads from a few years back reporting the | same issue, but hoping it's fixed by now. | Other than doing a bit of a nasty exec rpm -e / onlyif rpm -q ypbind | blah....what's a chap to do? | Regs, | Stephen Try with ensure => purge -- James A. Peltier Manager, IT Services - Research Computing Group Simon Fraser University - Burnaby Campus Phone : 778-782-6573 Fax : 778-782-3045 E-Mail : jpelt...@sfu.ca Website : http://www.sfu.ca/itservices “A successful person is one who can lay a solid foundation from the bricks others have thrown at them.” -David Brinkley via Luke Shaw -- 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 puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.