Dear Puppet users and developers,
We're Solaris 10/X86 users, enjoying ZFS and Solaris
containers. In my first effort to configure a host without ever
logging in after launching Puppet, I've tried to remove a ZFS filesystem:
zfs { "rpool/export/home":
ensure => absent;
}
Resulting in:
debug: //Node[nodename]/v20z-base-zfs/Zfs[rpool/export/home]:
Changing ensure
debug: //Node[nodename]/v20z-base-zfs/Zfs[rpool/export/home]:
1 change(s)
err: //Node[nodename]/v20z-base-zfs/Zfs[rpool/export/home]/ensure:
change from present to absent failed: Could not set absent on ensure:
undefined method `destroy' for #<Puppet::Type::Zfs:0x8e0db54> at
/path/v20z-base-zfs/manifests/init.pp:31
The online type reference says "ensure" supports "absent" and "present"
for the ZFS type, and "provider/zfs/solaris.rb" suggests that deletion
should work as well:
def create
zfs *([:create] + add_properties + [...@resource[:name]])
end
def delete
zfs(:destroy, @resource[:name])
end
As I refuse to admit defeat and use "zfs destroy rpool/export/home", I'm
looking for ideas. I'm afraid my Ruby skills are severely limited :(
Using Puppet 0.24.8 from Blastwave-packages. Thanks!
--
Regards,
Hans van der Made
NL
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---