Hello all. I can't seem to get my ensurable to work for a custom type I'm
working on. Every time I run puppet I just get the message "ensure changed
'present' to 'latest'". I feel like I'm missing something obvious.
ensurable do
desc "Possible values are *present*, *absent*, *installed*, and
*latest*."
newvalue(:absent) do
if provider.exists?
provider.destroy
end
end
newvalue(:present) do
unless provider.exists?
provider.create
end
end
aliasvalue(:installed, :present)
newvalue(:latest) do
unless provider.latest?
provider.update
end
end
end
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en.