1 heat_template_version: ocata
4 OpenStack Panko API service configured with Puppet.
5 Note, This service is deprecated in Pike release and will
6 be disabled in future releases.
11 description: Mapping of service_name -> network name. Typically set
12 via parameter_defaults in the resource registry. This
13 mapping overrides those in ServiceNetMapDefaults.
20 description: Mapping of service endpoint -> protocol. Typically set
21 via parameter_defaults in the resource registry.
23 MonitoringSubscriptionPankoApi:
24 default: 'overcloud-ceilometer-panko-api'
31 A hash of policies to configure for Panko API.
32 e.g. { panko-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
38 type: ./panko-base.yaml
40 ServiceNetMap: {get_param: ServiceNetMap}
41 DefaultPasswords: {get_param: DefaultPasswords}
42 EndpointMap: {get_param: EndpointMap}
47 ServiceNetMap: {get_param: ServiceNetMap}
48 DefaultPasswords: {get_param: DefaultPasswords}
49 EndpointMap: {get_param: EndpointMap}
50 EnableInternalTLS: {get_param: EnableInternalTLS}
54 description: Role data for the Panko API service.
56 service_name: panko_api
57 monitoring_subscription: {get_param: MonitoringSubscriptionPankoApi}
60 - get_attr: [PankoBase, role_data, config_settings]
61 - get_attr: [ApacheServiceBase, role_data, config_settings]
62 - panko::wsgi::apache::ssl: {get_param: EnableInternalTLS}
63 panko::wsgi::apache::servername:
66 "%{hiera('fqdn_$NETWORK')}"
68 $NETWORK: {get_param: [ServiceNetMap, PankoApiNetwork]}
69 panko::policy::policies: {get_param: PankoApiPolicies}
70 panko::api::service_name: 'httpd'
71 panko::api::enable_proxy_headers_parsing: true
72 tripleo.panko_api.firewall_rules:
80 "%{hiera('fqdn_$NETWORK')}"
82 $NETWORK: {get_param: [ServiceNetMap, PankoApiNetwork]}
83 # NOTE: bind IP is found in Heat replacing the network name with the
84 # local node IP for the given network; replacement examples
85 # (eg. for internal_api):
87 # internal_api_uri -> [IP]
88 # internal_api_subnet - > IP/CIDR
89 panko::wsgi::apache::bind_host: {get_param: [ServiceNetMap, PankoApiNetwork]}
90 service_config_settings:
91 get_attr: [PankoBase, role_data, service_config_settings]
93 include tripleo::profile::base::panko::api
95 get_attr: [ApacheServiceBase, role_data, metadata_settings]
98 expression: $.data.apache_upgrade + $.data.panko_api_upgrade
101 get_attr: [ApacheServiceBase, role_data, upgrade_tasks]
103 - name: Check if httpd is deployed
104 command: systemctl is-enabled httpd
107 register: httpd_enabled
108 - name: "PreUpgrade step0,validation: Check if httpd is running"
110 /usr/bin/systemctl show 'httpd' --property ActiveState |
112 when: httpd_enabled.rc == 0
113 tags: step0,validation
114 - name: Stop panko-api service (running under httpd)
116 service: name=httpd state=stopped
117 when: httpd_enabled.rc == 0
118 - name: Install openstack-panko-api package if it was not installed
120 yum: name=openstack-panko-api state=latest