diff --git a/manifests/resource/qpid.pp b/manifests/resource/qpid.pp index 49e676be..0cc29511 100644 --- a/manifests/resource/qpid.pp +++ b/manifests/resource/qpid.pp @@ -4,6 +4,8 @@ # and that the nessesary configs are inplace for # the qpid clustering to start using the pacemaker # corosync instance +# The pacemaker resource is created as a cloned resource +# so that pacemaker starts qpid on all the cluster's nodes class pacemaker::resource::qpid($name, $cluster_name, diff --git a/tests/init.pp b/tests/init.pp index 24d3f44f..e39e49f4 100644 --- a/tests/init.pp +++ b/tests/init.pp @@ -11,6 +11,7 @@ include pacemaker ### Installs Pacemaker and corosync and creates a cluster +### Should be run on all pacemaker nodes class {"pacemaker::corosync": cluster_name => "cluster_name", cluster_members => "192.168.122.3 192.168.122.7", @@ -29,6 +30,9 @@ class {"pacemaker::stonith::ipmilan": } ### Add resources +### each of these can generally be added to a single +### node, though running them on multiple nodes +### will net the same result class {"pacemaker::resource::ip": ip_address => "192.168.122.223", #ensure => "absent", @@ -55,3 +59,9 @@ class {"pacemaker::resource::filesystem": group => 'test-group', } +# this must be run on all pacemaker/qpidd nodes +class {'pacemaker::resource::qpid': + name => "My_qpidd_resource", + cluster_name => "qpid_cluster", +} +