1 heat_template_version: pike
4 Horizon service configured with Puppet
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
19 description: Set to True to enable debugging on all services.
23 description: Set to True to enable debugging Horizon service.
30 description: Role name on which the service is applied
34 description: Parameters specific to the role
38 description: Mapping of service endpoint -> protocol. Typically set
39 via parameter_defaults in the resource registry.
43 description: A list of IP/Hostname for the server Horizon is running on.
44 Used for header checks.
45 type: comma_delimited_list
46 HorizonPasswordValidator:
47 description: Regex for password validation
50 HorizonPasswordValidatorHelp:
51 description: Help text for password validation
55 description: Secret key for Django
60 description: Set CSRF_COOKIE_SECURE / SESSION_COOKIE_SECURE in Horizon
65 description: Enable IPv6 features in Memcached.
67 MonitoringSubscriptionHorizon:
68 default: 'overcloud-horizon'
74 default: '/etc/ipa/ca.crt'
76 description: Specifies the default CA cert to use if TLS is used for
77 services in the internal network.
81 debug_unset: {equals : [{get_param: Debug}, '']}
85 description: Role data for the Horizon role.
88 monitoring_subscription: {get_param: MonitoringSubscriptionHorizon}
91 - horizon::allowed_hosts: {get_param: HorizonAllowedHosts}
92 tripleo.horizon.firewall_rules:
97 horizon::enable_secure_proxy_ssl_header: true
98 horizon::disable_password_reveal: true
99 horizon::enforce_password_check: true
100 horizon::disallow_iframe_embed: true
101 horizon::cache_backend: django.core.cache.backends.memcached.MemcachedCache
102 horizon::django_session_engine: 'django.contrib.sessions.backends.cache'
103 horizon::vhost_extra_params:
105 access_log_format: '%a %l %u %t \"%r\" %>s %b \"%%{}{Referer}i\" \"%%{}{User-Agent}i\"'
106 options: ['FollowSymLinks','MultiViews']
107 horizon::bind_address: {get_param: [ServiceNetMap, HorizonNetwork]}
108 horizon::keystone_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
109 horizon::password_validator: {get_param: [HorizonPasswordValidator]}
110 horizon::password_validator_help: {get_param: [HorizonPasswordValidatorHelp]}
113 expression: $.data.passwords.where($ != '').first()
116 - {get_param: HorizonSecret}
117 - {get_param: [DefaultPasswords, horizon_secret]}
118 horizon::secure_cookies: {get_param: [HorizonSecureCookies]}
119 memcached_ipv6: {get_param: MemcachedIPv6}
123 "%{hiera('fqdn_$NETWORK')}"
125 $NETWORK: {get_param: [ServiceNetMap, HorizonNetwork]}
126 horizon::listen_ssl: {get_param: EnableInternalTLS}
127 horizon::horizon_ca: {get_param: InternalTLSCAFile}
131 - horizon::django_debug: { get_param: HorizonDebug }
132 - horizon::django_debug: { get_param: Debug }
134 include ::tripleo::profile::base::horizon
135 # Ansible tasks to handle upgrade
137 - name: Check if httpd is deployed
138 command: systemctl is-enabled httpd
141 register: httpd_enabled
142 - name: "PreUpgrade step0,validation: Check if httpd is running"
144 /usr/bin/systemctl show 'httpd' --property ActiveState |
146 when: httpd_enabled.rc == 0
147 tags: step0,validation
148 - name: Stop Horizon (under httpd)
150 when: httpd_enabled.rc == 0
151 service: name=httpd state=stopped
152 service_config_settings:
154 tripleo.horizon.firewall_rules: