SirDiesALot
2012-Nov-26 23:02 UTC
[Puppet Users] Status of STONITH support in the puppetlabs corosync module?
Greetings - Hoping to hear from hunner or one of the other maintainers of the puppetlabs corosync module - there is a note on the git project page that there is currently no way to configure STONITH. Is this information current? If so, has anybody come up with a simple method of managing STONITH with corosync via puppet? -- 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/-/twMwc2Ewv2gJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Dominik Żyła
2012-Nov-29 07:51 UTC
Re: [Puppet Users] Status of STONITH support in the puppetlabs corosync module?
Hi, 2012/11/27 SirDiesALot <aallen@envysion.com>> Greetings - > > Hoping to hear from hunner or one of the other maintainers of the > puppetlabs corosync module - there is a note on the git project page that > there is currently no way to configure STONITH. Is this information > current? >It is.> > If so, has anybody come up with a simple method of managing STONITH with > corosync via puppet? >-- Dominik Żyła -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nick Cammorato
2012-Dec-01 15:48 UTC
[Puppet Users] Re: Status of STONITH support in the puppetlabs corosync module?
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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.