On Fri, May 4, 2012 at 2:03 PM, Philip Brown <[email protected]> wrote:

> Hmm, i guess I slightly misunderstood: my ensure routine should return
> false or true, i guess.
>
> But I'm still missing info :(
> In my trivial example below, the "ensure" routine gets called and prints
> out its debug line. But the other routines do not.
> Instead, I see
> debug: /Stage[main]//Sysprop[system/sac]: The container Class[Main] will
> propagate my refresh event
> debug: Class[Main]: The container Stage[main] will propagate my refresh
> event
>

 can you share the type code? Is it possible that you did not specify that
the resource type was ensurable with the ensurable method?




> but nothing else relevant  happens :(
>
>
> Puppet::Type.type(:sysprop).provide(:solaris) do
>   desc "Provider for Solaris system properties"
>   defaultfor :operatingsystem => :solaris
>
>   def create
>     Puppet.debug "sysprop.create called"
>   end
>   def destroy
>     Puppet.debug "sysprop.destroy called"
>   end
>   def exists?
>     Puppet.debug "sysprop.exists? has not been written yet"
>     return false
>   end
> end
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-dev/-/qW6qeTMEq1QJ.
>
> 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.
>

-- 
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.

Reply via email to