Pacemaker / RH: add cluster password support

For security reasons, allow to change the default password.

Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
Emilien Macchi
2014-06-27 12:02:17 +02:00
parent 95bc170738
commit 2b4e34521b

View File

@@ -36,7 +36,8 @@
class cloud::spof(
$cluster_ip = '127.0.0.1',
$cluster_members = false,
$multicast_address = '239.1.1.2'
$multicast_address = '239.1.1.2',
$cluster_password = 'secrete'
) {
if $::operatingsystem == 'RedHat' {
@@ -44,6 +45,10 @@ class cloud::spof(
fail('cluster_members is a required parameter.')
}
class { 'pacemaker':
hacluster_pwd => $cluster_password
}
class { 'pacemaker::corosync':
cluster_name => 'openstack_cluster',
cluster_members => $cluster_members