Custom type and confine
I am writing a type with two providers. Can I specify 'confine' option to each provider based on the type param value?
It does look like you can write something like this:
confine :true => begin # Test for the suitability of this provider based on some attributes value if (resource[:myparam] == myvalue) true else false end end
I'm no Puppet provider developer yet, and not too much of a Ruby programmer either, so take this with a large grain of salt and YMMV! I would like to hear if it does what you want, though.
Asked: 2015-02-26 23:22:43 -0500
Seen: 247 times
Last updated: Feb 27 '15