Issue #6143 has been updated by Josh Cooper. Status changed from Accepted to Merged - Pending Release
Merged into 3.x in <https://github.com/puppetlabs/puppet/commit/0b64439b17136db7194f3c8209476eecdf56f91c> Providers that are `ensurable` need to implement the `create`, `exists?`, and `destroy` lifecycle methods. The user & group providers are different, because those types override the default `ensurable` behavior, and call `delete` instead of `destroy`. ---------------------------------------- Bug #6143: cannot remove zpool's with ensure => absent https://projects.puppetlabs.com/issues/6143#change-69891 Author: Garrett Honeycutt Status: Merged - Pending Release Priority: Normal Assignee: Rahul Gopinath Category: Solaris Target version: 3.0.0 Affected Puppet version: 0.22.1 Keywords: zpool solaris zfs Branch: https://github.com/puppetlabs/puppet/pull/1070 <pre> zpool { "mypool": ensure => present, disk => "c1t1d0", } </pre> works as expected and produces <pre> info: Applying configuration version '1296814477' cannot open 'mypool': no such pool notice: /Stage[main]//Zpool[mypool]/ensure: created notice: Finished catalog run in 0.42 seconds </pre> <pre> # zpool list NAME SIZE ALLOC FREE CAP HEALTH ALTROOT mypool 1008M 76.5K 1008M 0% ONLINE - </pre> though when you set <pre>ensure => absent</pre> you get <pre> err: /Stage[main]//Zpool[mypool]/ensure: change from present to absent failed: Could not set 'absent on ensure: undefined method `destroy' for #<Puppet::Type::Zpool:0x8c9d2d8> at /root/manifests/zfs.pp:4 </pre> tested with Puppet 2.6.4 built from master branch -- 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 post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
