From 5d3b70fbb878a1da6ac414fe8532227cac6fb912 Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Mon, 20 Apr 2015 07:20:07 -0400 Subject: [PATCH] Switch VIP management from Keepalived to Pacemaker Change-Id: I45511569fda6b00ca35b1e590537a29271e56ce0 Depends-On: I98b9b3dbc48009ce255d964ac580e1a31f279f1e --- puppet/manifests/overcloud_controller.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/puppet/manifests/overcloud_controller.pp b/puppet/manifests/overcloud_controller.pp index b1ccf3d7..505d4f5e 100644 --- a/puppet/manifests/overcloud_controller.pp +++ b/puppet/manifests/overcloud_controller.pp @@ -32,6 +32,7 @@ if hiera('step') >= 1 { class { '::tripleo::loadbalancer' : controller_hosts => $controller_node_ips, + manage_vip => $enable_keepalived, } if $enable_pacemaker { @@ -54,6 +55,16 @@ if hiera('step') >= 1 { class { '::pacemaker::stonith': disable => true, } + if $pacemaker_master { + $control_vip = hiera('tripleo::loadbalancer::controller_virtual_ip') + pacemaker::resource::ip { 'control_vip': + ip_address => $control_vip, + } + $public_vip = hiera('tripleo::loadbalancer::public_virtual_ip') + pacemaker::resource::ip { 'public_vip': + ip_address => $public_vip, + } + } } } -- 2.16.6