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:
@@ -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
|
||||
|
Reference in New Issue
Block a user