1 heat_template_version: pike
4 OpenStack Nova Placement API 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.
18 description: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
31 description: Number of workers for Nova Placement API service.
34 description: The password for the nova service and db account, used by nova-placement.
40 description: Keystone region for endpoint
41 MonitoringSubscriptionNovaPlacement:
42 default: 'overcloud-nova-placement'
44 NovaPlacementLoggingSource:
47 tag: openstack.nova.placement
48 path: /var/log/httpd/nova_placement_wsgi_error_ssl.log
54 nova_workers_zero: {equals : [{get_param: NovaWorkers}, 0]}
60 ServiceNetMap: {get_param: ServiceNetMap}
61 DefaultPasswords: {get_param: DefaultPasswords}
62 EndpointMap: {get_param: EndpointMap}
63 RoleName: {get_param: RoleName}
64 RoleParameters: {get_param: RoleParameters}
65 EnableInternalTLS: {get_param: EnableInternalTLS}
68 type: ./nova-base.yaml
70 ServiceNetMap: {get_param: ServiceNetMap}
71 DefaultPasswords: {get_param: DefaultPasswords}
72 EndpointMap: {get_param: EndpointMap}
73 RoleName: {get_param: RoleName}
74 RoleParameters: {get_param: RoleParameters}
78 description: Role data for the Nova Placement API service.
80 service_name: nova_placement
81 monitoring_subscription: {get_param: MonitoringSubscriptionNovaPlacement}
82 logging_source: {get_param: NovaPlacementLoggingSource}
87 - get_attr: [NovaBase, role_data, config_settings]
88 - get_attr: [ApacheServiceBase, role_data, config_settings]
89 - tripleo.nova_placement.firewall_rules:
94 nova::keystone::authtoken::project_name: 'service'
95 nova::keystone::authtoken::password: {get_param: NovaPassword}
96 nova::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
97 nova::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
98 nova::wsgi::apache_placement::api_port: '8778'
99 nova::wsgi::apache_placement::ssl: {get_param: EnableInternalTLS}
100 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
101 # for the given network; replacement examples (eg. for internal_api):
103 # internal_api_uri -> [IP]
104 # internal_api_subnet - > IP/CIDR
105 nova::wsgi::apache_placement::bind_host: {get_param: [ServiceNetMap, NovaPlacementNetwork]}
106 nova::wsgi::apache_placement::servername:
109 "%{hiera('fqdn_$NETWORK')}"
111 $NETWORK: {get_param: [ServiceNetMap, NovaPlacementNetwork]}
116 - nova::wsgi::apache_placement::workers: {get_param: NovaWorkers}
118 include tripleo::profile::base::nova::placement
119 service_config_settings:
121 nova::keystone::auth_placement::tenant: 'service'
122 nova::keystone::auth_placement::public_url: {get_param: [EndpointMap, NovaPlacementPublic, uri]}
123 nova::keystone::auth_placement::internal_url: {get_param: [EndpointMap, NovaPlacementInternal, uri]}
124 nova::keystone::auth_placement::admin_url: {get_param: [EndpointMap, NovaPlacementAdmin, uri]}
125 nova::keystone::auth_placement::password: {get_param: NovaPassword}
126 nova::keystone::auth_placement::region: {get_param: KeystoneRegion}
129 - {get_attr: [NovaBase, role_data, service_config_settings, mysql]}
130 - nova::db::mysql_placement::password: {get_param: NovaPassword}
131 nova::db::mysql_placement::user: nova_placement
132 nova::db::mysql_placement::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
133 nova::db::mysql_placement::dbname: nova_placement
134 nova::db::mysql_placement::allowed_hosts:
136 - "%{hiera('mysql_bind_host')}"
138 - name: Stop nova_placement service (running under httpd)
140 service: name=httpd state=stopped
141 # The nova placement API isn't installed in newton images, so install
143 - name: Install nova-placement packages on upgrade
145 yum: name=openstack-nova-placement-api state=latest