Merge "Remove repeated apache-related hieradata"
[apex-tripleo-heat-templates.git] / puppet / services / horizon.yaml
1 heat_template_version: 2016-10-14
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   Debug:
14     default: ''
15     description: Set to True to enable debugging on all services.
16     type: string
17   DefaultPasswords:
18     default: {}
19     type: json
20   EndpointMap:
21     default: {}
22     description: Mapping of service endpoint -> protocol. Typically set
23                  via parameter_defaults in the resource registry.
24     type: json
25   HorizonAllowedHosts:
26     default: '*'
27     description: A list of IP/Hostname allowed to connect to horizon
28     type: comma_delimited_list
29   HorizonSecret:
30     description: Secret key for Django
31     type: string
32     hidden: true
33     default: ''
34   NeutronMechanismDrivers:
35     default: 'openvswitch'
36     description: |
37         The mechanism drivers for the Neutron tenant network.
38     type: comma_delimited_list
39   MemcachedIPv6:
40     default: false
41     description: Enable IPv6 features in Memcached.
42     type: boolean
43   MonitoringSubscriptionHorizon:
44     default: 'overcloud-horizon'
45     type: string
46
47 outputs:
48   role_data:
49     description: Role data for the Horizon role.
50     value:
51       service_name: horizon
52       monitoring_subscription: {get_param: MonitoringSubscriptionHorizon}
53       config_settings:
54         horizon::allowed_hosts: {get_param: HorizonAllowedHosts}
55         neutron::plugins::ml2::mechanism_drivers:
56           str_replace:
57             template: MECHANISMS
58             params:
59               MECHANISMS: {get_param: NeutronMechanismDrivers}
60         tripleo.horizon.firewall_rules:
61           '126 horizon':
62             dport:
63               - 80
64               - 443
65         horizon::cache_backend: django.core.cache.backends.memcached.MemcachedCache
66         horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
67         horizon::vhost_extra_params:
68           add_listen: false
69           priority: 10
70           access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
71         horizon::bind_address: {get_param: [ServiceNetMap, HorizonNetwork]}
72         horizon::django_debug: {get_param: Debug}
73         horizon::keystone_url: {get_param: [EndpointMap, KeystoneInternal, uri]}
74         horizon::secret_key:
75           yaql:
76             expression: $.data.passwords.where($ != '').first()
77             data:
78               passwords:
79                 - {get_param: HorizonSecret}
80                 - {get_param: [DefaultPasswords, horizon_secret]}
81         memcached_ipv6: {get_param: MemcachedIPv6}
82       step_config: |
83         include ::tripleo::profile::base::horizon