You should be able to rig something up using the existing cs_primitive, 
cs_clone and cs_property provider/types, although I've avoided doing this 
as it worries me. The problem as far as I can tell is that cs_primitive 
assumes a provider, primitive class, and primitive type, and stonith 
resource primitives lack the provider.   You'd need to modify 
cs_primitive(particularly the flush section) to allow a 0 length or nil 
provided_by value, and then could do the following.  

IE (from the cluster labs CRM fencing 
example: http://clusterlabs.org/doc/crm_fencing.html )
cs_primitive { 'dummy-stonith'': primitive_class => 'stonith', 
primitive_type => 'null', params => { 'hostlist' => 'node1 node2' } }
cs_clone { 'fencing':  primitive => 'dummy-stonith' }

Which should translate to:
crm configure primitive dummy-stonith stonith:null params hostlist="node1 
node2"
crm configure clone fencing dummy-stonith

And then of course set your properties.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/_ElTvDlGW9oJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to