Set up corosync using hostnames rather than IPs
authorJiri Stransky <jistr@redhat.com>
Mon, 27 Apr 2015 12:02:19 +0000 (14:02 +0200)
committermarios <marios@redhat.com>
Mon, 18 May 2015 08:19:28 +0000 (11:19 +0300)
This ensures that the hosts in Corosync and in Pacemaker are the same,
to make our cluster setup compatible with the recommended architecture.

Change-Id: Id81f315768edd24b8978b8de7093e04904591ce2
Closes-Bug: #1447497
Depends-On: Idb9ad017ffb1048f38fedbd55cc974785f6b1c38

puppet/manifests/overcloud_controller_pacemaker.pp

index f476f34..996701d 100644 (file)
@@ -41,7 +41,7 @@ if hiera('step') >= 1 {
     haproxy_service_manage => false,
   }
 
-  $pacemaker_cluster_members = regsubst(hiera('controller_node_ips'), ',', ' ', 'G')
+  $pacemaker_cluster_members = downcase(regsubst(hiera('controller_node_names'), ',', ' ', 'G'))
   user { 'hacluster':
    ensure => present,
   } ->