Merge "Filter null/None service names"
[apex-tripleo-heat-templates.git] / puppet / services / horizon.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Horizon service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   HorizonAllowedHosts:
13     default: '*'
14     description: A list of IP/Hostname allowed to connect to horizon
15     type: comma_delimited_list
16   NeutronMechanismDrivers:
17     default: 'openvswitch'
18     description: |
19         The mechanism drivers for the Neutron tenant network.
20     type: comma_delimited_list
21
22 outputs:
23   role_data:
24     description: Role data for the Horizon role.
25     value:
26       service_name: horizon
27       config_settings:
28         horizon::allowed_hosts: {get_param: HorizonAllowedHosts}
29         neutron::plugins::ml2::mechanism_drivers:
30           str_replace:
31             template: MECHANISMS
32             params:
33               MECHANISMS: {get_param: NeutronMechanismDrivers}
34         tripleo.horizon.firewall_rules:
35           '126 horizon':
36             dport:
37               - 80
38               - 443
39         horizon::cache_backend: django.core.cache.backends.memcached.MemcachedCache
40         horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
41         horizon::vhost_extra_params:
42           add_listen: false
43           priority: 10
44           access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
45       step_config: |
46         include ::tripleo::profile::base::horizon