adding some comments and tests
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user