diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-05-31 12:26:15 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-05-31 12:26:15 +0000 |
commit | f9a557f90dcb101e5709cbb09e7205dd594f9580 (patch) | |
tree | b38e66cf13c562492122c85cdc9fe17590ba8c6e /manifests/profile/base/loadbalancer.pp | |
parent | 325dc2a17715c927327f2f4de13d8c10ab70fd72 (diff) | |
parent | b0ec457332912476618c55752041f4440dd2cf68 (diff) |
Merge "Update profiles for loadbalancer split"
Diffstat (limited to 'manifests/profile/base/loadbalancer.pp')
-rw-r--r-- | manifests/profile/base/loadbalancer.pp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/manifests/profile/base/loadbalancer.pp b/manifests/profile/base/loadbalancer.pp index 2a961c4..e5a0f48 100644 --- a/manifests/profile/base/loadbalancer.pp +++ b/manifests/profile/base/loadbalancer.pp @@ -44,9 +44,18 @@ class tripleo::profile::base::loadbalancer ( if $step >= 1 { if $enable_load_balancer { - class { '::tripleo::loadbalancer': - controller_hosts => $controller_node_ips, - controller_hosts_names => $controller_node_names, + # TODO(emilien): remove this conditional once + # https://review.openstack.org/#/c/320411/ is merged. + if hiera('tripleo::loadbalancer::keystone_admin', undef) { + class { '::tripleo::loadbalancer': + controller_hosts => $controller_node_ips, + controller_hosts_names => $controller_node_names, + } + } else { + class { '::tripleo::haproxy': + controller_hosts => $controller_node_ips, + controller_hosts_names => $controller_node_names, + } } } } |