Sync httpd vhost settings in between pcmk and non-pcmk scenarios
authorGiulio Fidente <gfidente@redhat.com>
Thu, 15 Oct 2015 16:30:42 +0000 (18:30 +0200)
committerGiulio Fidente <gfidente@redhat.com>
Thu, 15 Oct 2015 16:30:42 +0000 (18:30 +0200)
Moves the vhost_params out of the manifest and into static hiera;
also removes unneeded server_alias parameter as that matched the
vhost servername anyway.

Change-Id: I4b5971b23ef3be9529a59075fa93ccc64af75b9c

puppet/hieradata/controller.yaml
puppet/manifests/overcloud_controller.pp
puppet/manifests/overcloud_controller_pacemaker.pp

index 90c2705..a95ea50 100644 (file)
@@ -91,6 +91,9 @@ pacemaker::resource_defaults::defaults:
 
 # horizon
 horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
+horizon::vhost_extra_params:
+  add_listen: false
+  priority: 10
 
 # mysql
 mysql::server::manage_config_file: true
index c330236..777af22 100644 (file)
@@ -461,10 +461,8 @@ if hiera('step') >= 3 {
     $_profile_support = 'None'
   }
   $neutron_options   = {'profile_support' => $_profile_support }
-  $vhost_params = { add_listen => false }
   class { 'horizon':
     cache_server_ip    => hiera('memcache_node_ips', '127.0.0.1'),
-    vhost_extra_params => $vhost_params,
     neutron_options    => $neutron_options,
   }
 
index b8fa89f..645ad6e 100644 (file)
@@ -883,14 +883,8 @@ if hiera('step') >= 3 {
     $_profile_support = 'None'
   }
   $neutron_options   = {'profile_support' => $_profile_support }
-  $vhost_params = {
-    add_listen => false,
-    priority   => 10,
-  }
   class { 'horizon':
     cache_server_ip    => hiera('memcache_node_ips', '127.0.0.1'),
-    vhost_extra_params => $vhost_params,
-    server_aliases     => $::hostname,
     neutron_options    => $neutron_options,
   }