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:
94 access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
95 options: ['FollowSymLinks','MultiViews']
96 horizon::bind_address: {get_param: [ServiceNetMap, HorizonNetwork]}
97 horizon::keystone_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
98 horizon::password_validator: {get_param: [HorizonPasswordValidator]}
99 horizon::password_validator_help: {get_param: [HorizonPasswordValidatorHelp]}
102 expression: $.data.passwords.where($ != '').first()
105 - {get_param: HorizonSecret}
106 - {get_param: [DefaultPasswords, horizon_secret]}
107 horizon::secure_cookies: {get_param: [HorizonSecureCookies]}
108 memcached_ipv6: {get_param: MemcachedIPv6}
112 - horizon::django_debug: { get_param: HorizonDebug }
113 - horizon::django_debug: { get_param: Debug }
115 include ::tripleo::profile::base::horizon
116 # Ansible tasks to handle upgrade
118 - name: Check if httpd is deployed
119 command: systemctl is-enabled httpd
122 register: httpd_enabled
123 - name: "PreUpgrade step0,validation: Check if httpd is running"
125 /usr/bin/systemctl show 'httpd' --property ActiveState |
127 when: httpd_enabled.rc == 0
128 tags: step0,validation
129 - name: Stop Horizon (under httpd)
131 when: httpd_enabled.rc == 0
132 service: name=httpd state=stopped
133 service_config_settings:
135 tripleo.horizon.firewall_rules: