On Tuesday, January 28, 2014 6:16:41 AM UTC-6, Krist van Besien wrote:
>
> Hello,
>
> I am using the Radez/Paxemaker modules, and this allows me to define a 
> cluster like this:
>
>    class {'pacemaker::corosync':
>       cluster_name => $control_clu_name,
>       cluster_members => $control_clu_members,
>       require => [ Package['ccs'],
>     }
>
> I currently define the cluster name and members in two parameters. If I 
> add a host to the cluster I just add it's name to the $control_clu_members 
> parameter.
> Is there a way however to do this automatically? Have every host that has 
> this class declared on export something, and use this. Is there a way one 
> can use exported resources to construct strings to be used as rvalues?
>
>

Not any good ways.  In any case, that idea doesn't look like a good fit for 
the module in question.  A quick examination leads me to believe that it 
will set up the cluster only once (on each node that has the 
pacemaker::corrosync class).  The resources exported by a given node are 
not available for collection until after the node has checked in at least 
once, however, so even if you could collect information that they exported, 
most nodes would initially get have an incomplete list of cluster members.  
And that would stick.  To use that module effectively, it looks like you 
need to be able to enumerate the cluster members in advance.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1dece38d-7e99-4686-9af6-edd1f4343b6e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to