On Tue, Feb 19, 2013 at 6:31 AM, Gavin Williams <[email protected]> wrote:
> Ok, I've started trying to work up some code to outline the change > below... > > However I'm hitting an issue whereby the catalogue is failing due to: > *"Error: Failed to apply catalog: Parameter ensure failed on > Netapp_snapmirror[actint-star-nactl02:/vol/v_puppet_db01_redo/q_puppet_db01_redo]: > Invalid value "initializing". Valid values are present, absent."* > > I've updated my *ensurable *block to be: > ensurable do > desc "Netapp Snapmirror resource state. Valid values are: present, > absent, initializing." > > defaultto(:present) > > newvalue(:present) do > if provider.initialized > #provider.create > provider.progress > else > # provider.create > > provider.progress > end > end > > newvalue(:absent) do > provider.destroy > end > > newvalue(:initializing) do > provider.progress > end > > end > > I've tried restarting the puppetmaster service several times, however keep > coming back with that error :( > > Any ideas?? > I realized there's an issues with the PoC code going from initializing to absent so I haven't posted it yet. In ensurable I forgot to include :attr_reader :initializing which is causing the error. I'll send a follow up when I have some time to dig through this again. Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
