diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-03-07 16:02:46 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-03-07 16:02:46 +0000 |
commit | fd54aa95a3953512b08cd8ed138f89647895f6f6 (patch) | |
tree | bb76f84348a89784c3f53766ae24377c7fb49294 /puppet/manifests | |
parent | 5883da64d7980b60fcd2b2a6db9b77097f27afb9 (diff) | |
parent | 664df3372d9b922c08a1e893ee49632613cbcc6b (diff) |
Merge "Allow to enable IPv6 on Corosync"
Diffstat (limited to 'puppet/manifests')
-rw-r--r-- | puppet/manifests/overcloud_controller_pacemaker.pp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/puppet/manifests/overcloud_controller_pacemaker.pp b/puppet/manifests/overcloud_controller_pacemaker.pp index 2be9911c..39648ed8 100644 --- a/puppet/manifests/overcloud_controller_pacemaker.pp +++ b/puppet/manifests/overcloud_controller_pacemaker.pp @@ -62,6 +62,12 @@ if hiera('step') >= 1 { } $pacemaker_cluster_members = downcase(regsubst(hiera('controller_node_names'), ',', ' ', 'G')) + $corosync_ipv6 = str2bool(hiera('corosync_ipv6', false)) + if $corosync_ipv6 { + $cluster_setup_extras = { '--ipv6' => '' } + } else { + $cluster_setup_extras = {} + } user { 'hacluster': ensure => present, } -> @@ -69,8 +75,9 @@ if hiera('step') >= 1 { hacluster_pwd => hiera('hacluster_pwd'), } -> class { '::pacemaker::corosync': - cluster_members => $pacemaker_cluster_members, - setup_cluster => $pacemaker_master, + cluster_members => $pacemaker_cluster_members, + setup_cluster => $pacemaker_master, + cluster_setup_extras => $cluster_setup_extras, } class { '::pacemaker::stonith': disable => !$enable_fencing, |