1 heat_template_version: pike
4 Horizon service configured with Puppet
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.
15 description: Set to True to enable debugging on all services.
19 description: Set to True to enable debugging Horizon service.
26 description: Role name on which the service is applied
30 description: Parameters specific to the role
34 description: Mapping of service endpoint -> protocol. Typically set
35 via parameter_defaults in the resource registry.
39 description: A list of IP/Hostname for the server Horizon is running on.
40 Used for header checks.
41 type: comma_delimited_list
42 HorizonPasswordValidator:
43 description: Regex for password validation
46 HorizonPasswordValidatorHelp:
47 description: Help text for password validation
51 description: Secret key for Django
56 description: Set CSRF_COOKIE_SECURE / SESSION_COOKIE_SECURE in Horizon
61 description: Enable IPv6 features in Memcached.
63 MonitoringSubscriptionHorizon:
64 default: 'overcloud-horizon'
69 debug_unset: {equals : [{get_param: Debug}, '']}
73 description: Role data for the Horizon role.
76 monitoring_subscription: {get_param: MonitoringSubscriptionHorizon}
79 - horizon::allowed_hosts: {get_param: HorizonAllowedHosts}
80 tripleo.horizon.firewall_rules:
85 horizon::enable_secure_proxy_ssl_header: true
86 horizon::disable_password_reveal: true
87 horizon::enforce_password_check: true
88 horizon::disallow_iframe_embed: true
89 horizon::cache_backend: django.core.cache.backends.memcached.MemcachedCache
90 horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
91 horizon::vhost_extra_params:
93 access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
94 options: ['FollowSymLinks','MultiViews']
95 horizon::bind_address: {get_param: [ServiceNetMap, HorizonNetwork]}
96 horizon::keystone_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
97 horizon::password_validator: {get_param: [HorizonPasswordValidator]}
98 horizon::password_validator_help: {get_param: [HorizonPasswordValidatorHelp]}
101 expression: $.data.passwords.where($ != '').first()
104 - {get_param: HorizonSecret}
105 - {get_param: [DefaultPasswords, horizon_secret]}
106 horizon::secure_cookies: {get_param: [HorizonSecureCookies]}
107 memcached_ipv6: {get_param: MemcachedIPv6}
111 - horizon::django_debug: { get_param: HorizonDebug }
112 - horizon::django_debug: { get_param: Debug }
114 include ::tripleo::profile::base::horizon
115 # Ansible tasks to handle upgrade
117 - name: Check if httpd is deployed
118 command: systemctl is-enabled httpd
121 register: httpd_enabled
122 - name: "PreUpgrade step0,validation: Check if httpd is running"
124 /usr/bin/systemctl show 'httpd' --property ActiveState |
126 when: httpd_enabled.rc == 0
127 tags: step0,validation
128 - name: Stop Horizon (under httpd)
130 when: httpd_enabled.rc == 0
131 service: name=httpd state=stopped
132 service_config_settings:
134 tripleo.horizon.firewall_rules: