Merge "Revert "Adjust MTU to compensate for VLAN tag issue""
[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 for the server Horizonis running on.
28                  Used for header checks.
29     type: comma_delimited_list
30   HorizonSecret:
31     description: Secret key for Django
32     type: string
33     hidden: true
34     default: ''
35   NeutronMechanismDrivers:
36     default: 'openvswitch'
37     description: |
38         The mechanism drivers for the Neutron tenant network.
39     type: comma_delimited_list
40   MemcachedIPv6:
41     default: false
42     description: Enable IPv6 features in Memcached.
43     type: boolean
44   MonitoringSubscriptionHorizon:
45     default: 'overcloud-horizon'
46     type: string
47
48 outputs:
49   role_data:
50     description: Role data for the Horizon role.
51     value:
52       service_name: horizon
53       monitoring_subscription: {get_param: MonitoringSubscriptionHorizon}
54       config_settings:
55         horizon::allowed_hosts: {get_param: HorizonAllowedHosts}
56         neutron::plugins::ml2::mechanism_drivers:
57           str_replace:
58             template: MECHANISMS
59             params:
60               MECHANISMS: {get_param: NeutronMechanismDrivers}
61         tripleo.horizon.firewall_rules:
62           '126 horizon':
63             dport:
64               - 80
65               - 443
66         horizon::disable_password_reveal: true
67         horizon::cache_backend: django.core.cache.backends.memcached.MemcachedCache
68         horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
69         horizon::vhost_extra_params:
70           add_listen: false
71           priority: 10
72           access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
73         horizon::bind_address: {get_param: [ServiceNetMap, HorizonNetwork]}
74         horizon::django_debug: {get_param: Debug}
75         horizon::keystone_url: {get_param: [EndpointMap, KeystoneInternal, uri]}
76         horizon::secret_key:
77           yaql:
78             expression: $.data.passwords.where($ != '').first()
79             data:
80               passwords:
81                 - {get_param: HorizonSecret}
82                 - {get_param: [DefaultPasswords, horizon_secret]}
83         memcached_ipv6: {get_param: MemcachedIPv6}
84       step_config: |
85         include ::tripleo::profile::base::horizon