1 heat_template_version: ocata
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: Mapping of service endpoint -> protocol. Typically set
23 via parameter_defaults in the resource registry.
27 description: A list of IP/Hostname for the server Horizon is running on.
28 Used for header checks.
29 type: comma_delimited_list
30 HorizonPasswordValidator:
31 description: Regex for password validation
34 HorizonPasswordValidatorHelp:
35 description: Help text for password validation
39 description: Secret key for Django
44 description: Set CSRF_COOKIE_SECURE / SESSION_COOKIE_SECURE in Horizon
49 description: Enable IPv6 features in Memcached.
51 MonitoringSubscriptionHorizon:
52 default: 'overcloud-horizon'
57 debug_empty: {equals : [{get_param: Debug}, '']}
61 description: Role data for the Horizon role.
64 monitoring_subscription: {get_param: MonitoringSubscriptionHorizon}
67 - horizon::allowed_hosts: {get_param: HorizonAllowedHosts}
68 tripleo.horizon.firewall_rules:
73 horizon::enable_secure_proxy_ssl_header: true
74 horizon::disable_password_reveal: true
75 horizon::enforce_password_check: true
76 horizon::disallow_iframe_embed: true
77 horizon::cache_backend: django.core.cache.backends.memcached.MemcachedCache
78 horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
79 horizon::vhost_extra_params:
82 access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
83 options: ['FollowSymLinks','MultiViews']
84 horizon::bind_address: {get_param: [ServiceNetMap, HorizonNetwork]}
85 horizon::keystone_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
86 horizon::password_validator: {get_param: [HorizonPasswordValidator]}
87 horizon::password_validator_help: {get_param: [HorizonPasswordValidatorHelp]}
90 expression: $.data.passwords.where($ != '').first()
93 - {get_param: HorizonSecret}
94 - {get_param: [DefaultPasswords, horizon_secret]}
95 horizon::secure_cookies: {get_param: [HorizonSecureCookies]}
96 memcached_ipv6: {get_param: MemcachedIPv6}
101 - horizon::django_debug: {get_param: Debug}
103 include ::tripleo::profile::base::horizon
104 # Ansible tasks to handle upgrade
106 - name: Check if httpd is deployed
107 command: systemctl is-enabled httpd
110 register: httpd_enabled
111 - name: "PreUpgrade step0,validation: Check if httpd is running"
113 /usr/bin/systemctl show 'httpd' --property ActiveState |
115 when: httpd_enabled.rc == 0
116 tags: step0,validation
117 - name: Stop Horizon (under httpd)
119 when: httpd_enabled.rc == 0
120 service: name=httpd state=stopped