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.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
35 description: A list of IP/Hostname for the server Horizon is running on.
36 Used for header checks.
37 type: comma_delimited_list
38 HorizonPasswordValidator:
39 description: Regex for password validation
42 HorizonPasswordValidatorHelp:
43 description: Help text for password validation
47 description: Secret key for Django
52 description: Set CSRF_COOKIE_SECURE / SESSION_COOKIE_SECURE in Horizon
57 description: Enable IPv6 features in Memcached.
59 MonitoringSubscriptionHorizon:
60 default: 'overcloud-horizon'
65 debug_empty: {equals : [{get_param: Debug}, '']}
69 description: Role data for the Horizon role.
72 monitoring_subscription: {get_param: MonitoringSubscriptionHorizon}
75 - horizon::allowed_hosts: {get_param: HorizonAllowedHosts}
76 tripleo.horizon.firewall_rules:
81 horizon::enable_secure_proxy_ssl_header: true
82 horizon::disable_password_reveal: true
83 horizon::enforce_password_check: true
84 horizon::disallow_iframe_embed: true
85 horizon::cache_backend: django.core.cache.backends.memcached.MemcachedCache
86 horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
87 horizon::vhost_extra_params:
90 access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
91 options: ['FollowSymLinks','MultiViews']
92 horizon::bind_address: {get_param: [ServiceNetMap, HorizonNetwork]}
93 horizon::keystone_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
94 horizon::password_validator: {get_param: [HorizonPasswordValidator]}
95 horizon::password_validator_help: {get_param: [HorizonPasswordValidatorHelp]}
98 expression: $.data.passwords.where($ != '').first()
101 - {get_param: HorizonSecret}
102 - {get_param: [DefaultPasswords, horizon_secret]}
103 horizon::secure_cookies: {get_param: [HorizonSecureCookies]}
104 memcached_ipv6: {get_param: MemcachedIPv6}
109 - horizon::django_debug: {get_param: Debug}
111 include ::tripleo::profile::base::horizon
112 # Ansible tasks to handle upgrade
114 - name: Check if httpd is deployed
115 command: systemctl is-enabled httpd
118 register: httpd_enabled
119 - name: "PreUpgrade step0,validation: Check if httpd is running"
121 /usr/bin/systemctl show 'httpd' --property ActiveState |
123 when: httpd_enabled.rc == 0
124 tags: step0,validation
125 - name: Stop Horizon (under httpd)
127 when: httpd_enabled.rc == 0
128 service: name=httpd state=stopped
129 service_config_settings:
131 tripleo.horizon.firewall_rules: