We have a custom type provider 
(rs_tag<https://github.com/Nextdoor/puppet_rightscale/blob/master/lib/puppet/type/rs_tag.rb>)
 
that I would like to make 'optional' ... that is, if you define a resource 
rs_tag{'foo': value => 'bar'} and the rs_tag provider cannot be loaded up, 
that Puppet just moves on and basically fails gracefully. One method I 
thought might work was to have a second 'provider' thats a 'noop' provider 
basically ... but I thought that might be hokey.

Is there a cleaner way to do this? Otherwise all of the code that calls 
'rs_tag{ ... }' will need to be wrapped in some kind of "if in 
rightscale..." statement, which feels really super ugly.

-- 
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 puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/a0371561-9801-4ccd-b4aa-25eaf24f9e1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to