Merge "Enable httpd balancing for Horizon"
authorJenkins <jenkins@review.openstack.org>
Mon, 22 Jun 2015 09:09:47 +0000 (09:09 +0000)
committerGerrit Code Review <review@openstack.org>
Mon, 22 Jun 2015 09:09:47 +0000 (09:09 +0000)
puppet/controller-puppet.yaml
puppet/hieradata/controller.yaml
puppet/manifests/overcloud_controller_pacemaker.pp

index 953e592..3d7ecd5 100644 (file)
@@ -979,6 +979,7 @@ resources:
                 nova::vncproxy::host: {get_input: nova_api_network}
 
                 # Horizon
+                apache::ip: {get_input: horizon_network}
                 horizon::django_debug: {get_input: debug}
                 horizon::secret_key: {get_input: horizon_secret}
                 horizon::bind_address: {get_input: horizon_network}
index 99ec0e9..2e30f21 100644 (file)
@@ -114,3 +114,4 @@ tripleo::loadbalancer::ceilometer: true
 tripleo::loadbalancer::heat_api: true
 tripleo::loadbalancer::heat_cloudwatch: true
 tripleo::loadbalancer::heat_cfn: true
+tripleo::loadbalancer::horizon: true
index de9eac5..cc1b32a 100644 (file)
@@ -718,14 +718,17 @@ if hiera('step') >= 3 {
   }
 
   # httpd/apache and horizon
+  # NOTE(gfidente): server-status can be consumed by the pacemaker resource agent
   include ::apache
-  class { '::apache::mod::status':
-    allow_from => ['127.0.0.1'],
+  include ::apache::mod::status
+  $vhost_params = {
+    add_listen => false,
+    priority   => 10,
   }
-  $vhost_params = { add_listen => false }
   class { 'horizon':
     cache_server_ip    => hiera('memcache_node_ips', '127.0.0.1'),
     vhost_extra_params => $vhost_params,
+    server_aliases     => $::hostname,
   }
 
   $snmpd_user = hiera('snmpd_readonly_user_name')