Disable keepalived for HA deployments via t-h-t
authorSteven Hardy <shardy@redhat.com>
Fri, 18 Nov 2016 11:45:57 +0000 (11:45 +0000)
committerSteven Hardy <shardy@redhat.com>
Fri, 18 Nov 2016 11:45:57 +0000 (11:45 +0000)
Currently this is disabled via a conditional in the keepalived
profile in puppet-tripleo, but this will be incompatible with
the planned composable upgrades implementation.  Instead we should
disable the service template by mapping to OS::Heat::None, and
ensure the haproxy manifest uses the t-h-t generated hiera value
keepalived_enabled instead of hard-coding a hiera override in the
haproxy template.

Change-Id: I85a8b1cca7268506de22adfb3a8ce7faa4f157ef
Partial-Bug: #1642936
Depends-On: I90faf51881bd05920067c1e1d82baf5d7586af23

environments/puppet-pacemaker.yaml
puppet/services/pacemaker/haproxy.yaml

index 8cfbab6..b8e93f2 100644 (file)
@@ -16,3 +16,6 @@ resource_registry:
   OS::TripleO::Services::Redis: ../puppet/services/pacemaker/database/redis.yaml
   OS::TripleO::Services::MySQL: ../puppet/services/pacemaker/database/mysql.yaml
   # Services that are disabled by default (use relevant environment files):
+
+  # Services that are disabled for HA deployments with pacemaker
+  OS::TripleO::Services::Keepalived: OS::Heat::None
index 52104a7..e4115d6 100644 (file)
@@ -38,7 +38,5 @@ outputs:
           - get_attr: [LoadbalancerServiceBase, role_data, config_settings]
           - tripleo::haproxy::haproxy_service_manage: false
             tripleo::haproxy::mysql_clustercheck: true
-            enable_keepalived: false
-            tripleo::haproxy::keepalived: false
       step_config: |
         include ::tripleo::profile::pacemaker::haproxy