summaryrefslogtreecommitdiffstats
path: root/puppet/services/aodh-api.yaml
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-09-05 14:39:04 +0300
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-09-21 09:31:33 +0000
commit2fc2770529fb9d65cf6be6862155102868f87cb1 (patch)
treeae0a70fd00ab8a589d944902b8738c2bf448aaa0 /puppet/services/aodh-api.yaml
parenta87939a39820d9190d2cd74be445e29951d0c6ad (diff)
Make apache-based services use network-dependent servername
Currently the servername is incorrectly set for the services running over apache. It currently takes the default value which is just the regular FQDN, when the services actually might be running on different IPs that require alternative FQDNs. This fixes that by filling that value from a fact in hiera that's dependant on the service's network. Closes-Bug: #1625677 Change-Id: Ib7ea5fd2d18a376eaa2f5a3fa5687cb9b719a8e2
Diffstat (limited to 'puppet/services/aodh-api.yaml')
-rw-r--r--puppet/services/aodh-api.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/puppet/services/aodh-api.yaml b/puppet/services/aodh-api.yaml
index c84614ba..15e93863 100644
--- a/puppet/services/aodh-api.yaml
+++ b/puppet/services/aodh-api.yaml
@@ -53,6 +53,12 @@ outputs:
- get_attr: [AodhBase, role_data, config_settings]
- get_attr: [ApacheServiceBase, role_data, config_settings]
- aodh::wsgi::apache::ssl: false
+ aodh::wsgi::apache::servername:
+ str_replace:
+ template:
+ '"%{::fqdn_$NETWORK}"'
+ params:
+ $NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
aodh::api::service_name: 'httpd'
tripleo.aodh_api.firewall_rules:
'128 aodh-api':