Pass ServiceNetMap to services
[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   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   HorizonAllowedHosts:
19     default: '*'
20     description: A list of IP/Hostname allowed to connect to horizon
21     type: comma_delimited_list
22   NeutronMechanismDrivers:
23     default: 'openvswitch'
24     description: |
25         The mechanism drivers for the Neutron tenant network.
26     type: comma_delimited_list
27
28 outputs:
29   role_data:
30     description: Role data for the Horizon role.
31     value:
32       service_name: horizon
33       config_settings:
34         horizon::allowed_hosts: {get_param: HorizonAllowedHosts}
35         neutron::plugins::ml2::mechanism_drivers:
36           str_replace:
37             template: MECHANISMS
38             params:
39               MECHANISMS: {get_param: NeutronMechanismDrivers}
40         tripleo.horizon.firewall_rules:
41           '126 horizon':
42             dport:
43               - 80
44               - 443
45         horizon::cache_backend: django.core.cache.backends.memcached.MemcachedCache
46         horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
47         horizon::vhost_extra_params:
48           add_listen: false
49           priority: 10
50           access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
51       step_config: |
52         include ::tripleo::profile::base::horizon