I'm currently writing a custom type for managing Windows environment
A variable should be (re-)created if it doesn't exist or the value doesn't
match the desired value. So exists? checks exactly this. It returns true
only if the variable exists and the value matches.
This, however, creates a problem when the variable should be destroyed.
When destroying a variable, I don't care for the value anymore. I just need
to know wether it exists or not. So I need to different tests
(existswithvalue? and exists?).
My problem now is that I don't know how to implement "ensure" for this
case, as I cannot use "ensurable" in the type.
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 firstname.lastname@example.org.
To post to this group, send email to email@example.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.