diff options
author | 2015-10-01 19:28:47 -0400 | |
---|---|---|
committer | 2016-01-04 18:51:08 -0500 | |
commit | 3d34404e3a33bb99be87d244b0e93fcad1704b6d (patch) | |
tree | bc34b5f56c3947fec478104a03f23104456fe12d /manifests | |
parent | 89b907c917a20be6065d8d4db1c8513a974516b9 (diff) |
Trove integration
Adds configuration for Trove to loadbalancer class.
Partially-implements: blueprint trove-integration
Change-Id: I3cdf43b6d63ad0ee68db047518743c62b6689f56
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/loadbalancer.pp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/manifests/loadbalancer.pp b/manifests/loadbalancer.pp index 2557d06..bd236ea 100644 --- a/manifests/loadbalancer.pp +++ b/manifests/loadbalancer.pp @@ -143,6 +143,11 @@ # When set, enables SSL on the Sahara public API endpoint using the specified file. # Defaults to undef # +# [*trove_certificate*] +# Filename of an HAProxy-compatible certificate and key file +# When set, enables SSL on the Trove public API endpoint using the specified file. +# Defaults to undef +# # [*swift_certificate*] # Filename of an HAProxy-compatible certificate and key file # When set, enables SSL on the Swift public API endpoint using the specified file. @@ -187,6 +192,10 @@ # (optional) Enable or not Sahara API binding # defaults to false # +# [*trove*] +# (optional) Enable or not Trove API binding +# defaults to false +# # [*glance_api*] # (optional) Enable or not Glance API binding # Defaults to false @@ -285,6 +294,7 @@ class tripleo::loadbalancer ( $neutron_certificate = undef, $cinder_certificate = undef, $sahara_certificate = undef, + $trove_certificate = undef, $manila_certificate = undef, $glance_certificate = undef, $nova_certificate = undef, @@ -299,6 +309,7 @@ class tripleo::loadbalancer ( $neutron = false, $cinder = false, $sahara = false, + $trove = false, $manila = false, $glance_api = false, $glance_registry = false, @@ -437,6 +448,11 @@ class tripleo::loadbalancer ( } else { $sahara_bind_certificate = $service_certificate } + if $trove_certificate { + $trove_bind_certificate = $trove_certificate + } else { + $trove_bind_certificate = $trove_certificate + } if $manila_certificate { $manila_bind_certificate = $manila_certificate } else { @@ -570,6 +586,19 @@ class tripleo::loadbalancer ( } } + $trove_api_vip = hiera('$trove_api_vip', $controller_virtual_ip) + if $trove_bind_certificate { + $trove_bind_opts = { + "${trove_api_vip}:8779" => [], + "${public_virtual_ip}:13779" => ['ssl', 'crt', $trove_bind_certificate], + } + } else { + $trove_bind_opts = { + "${trove_api_vip}:8779" => [], + "${public_virtual_ip}:8779" => [], + } + } + $nova_api_vip = hiera('nova_api_vip', $controller_virtual_ip) if $nova_bind_certificate { $nova_osapi_bind_opts = { @@ -818,6 +847,20 @@ class tripleo::loadbalancer ( } } + if $trove { + haproxy::listen { 'trove': + bind => $trove_bind_opts, + collect_exported => false, + } + haproxy::balancermember { 'trove': + listening_service => 'trove', + ports => '8779', + ipaddresses => hiera('trove_api_node_ips', $controller_hosts_real), + server_names => $controller_hosts_names_real, + options => ['check', 'inter 2000', 'rise 2', 'fall 5'], + } + } + if $glance_api { haproxy::listen { 'glance_api': bind => $glance_bind_opts, |