On 2014-28-01 13:16, 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?


You could try out dalen's puppet-db query module. It allows you to
query information from the puppet db and use the result in various
ways in your manifests.

regards
- henrik


--
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/lcbavk%24end%241%40ger.gmane.org.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to