1 heat_template_version: ocata
4 OpenStack Nova 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: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
23 description: Number of workers for Nova API service.
26 description: The password for the nova service and db account, used by nova-api.
32 description: Keystone region for endpoint
33 NeutronMetadataProxySharedSecret:
34 description: Shared secret to prevent spoofing
38 default: 'instance-%08x'
39 description: Template string to be used to generate instance names
44 Whether to create cron job for purging soft deleted rows in Nova database.
46 MonitoringSubscriptionNovaApi:
47 default: 'overcloud-nova-api'
52 tag: openstack.nova.api
53 path: /var/log/nova/nova-api.log
57 NovaDefaultFloatingPool:
59 description: Default pool for floating IP addresses
63 nova_workers_zero: {equals : [{get_param: NovaWorkers}, 0]}
69 ServiceNetMap: {get_param: ServiceNetMap}
70 DefaultPasswords: {get_param: DefaultPasswords}
71 EndpointMap: {get_param: EndpointMap}
72 EnableInternalTLS: {get_param: EnableInternalTLS}
75 type: ./nova-base.yaml
77 ServiceNetMap: {get_param: ServiceNetMap}
78 DefaultPasswords: {get_param: DefaultPasswords}
79 EndpointMap: {get_param: EndpointMap}
83 description: Role data for the Nova API service.
85 service_name: nova_api
86 monitoring_subscription: {get_param: MonitoringSubscriptionNovaApi}
87 logging_source: {get_param: NovaApiLoggingSource}
92 - get_attr: [NovaBase, role_data, config_settings]
93 - get_attr: [ApacheServiceBase, role_data, config_settings]
94 - nova::cron::archive_deleted_rows::hour: '*/12'
95 nova::cron::archive_deleted_rows::destination: '/dev/null'
96 tripleo.nova_api.firewall_rules:
104 nova::keystone::authtoken::project_name: 'service'
105 nova::keystone::authtoken::password: {get_param: NovaPassword}
106 nova::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
107 nova::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
108 nova::api::enabled: true
109 nova::api::default_floating_pool: {get_param: NovaDefaultFloatingPool}
110 nova::api::sync_db_api: true
111 nova::api::enable_proxy_headers_parsing: true
112 nova::api::api_bind_address:
115 "%{hiera('fqdn_$NETWORK')}"
117 $NETWORK: {get_param: [ServiceNetMap, NovaApiNetwork]}
118 nova::api::service_name: 'httpd'
119 nova::wsgi::apache_api::ssl: {get_param: EnableInternalTLS}
120 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
121 # for the given network; replacement examples (eg. for internal_api):
123 # internal_api_uri -> [IP]
124 # internal_api_subnet - > IP/CIDR
125 nova::wsgi::apache_api::bind_host: {get_param: [ServiceNetMap, NovaApiNetwork]}
126 nova::wsgi::apache_api::servername:
129 "%{hiera('fqdn_$NETWORK')}"
131 $NETWORK: {get_param: [ServiceNetMap, NovaApiNetwork]}
132 nova::api::neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
133 nova::api::instance_name_template: {get_param: InstanceNameTemplate}
134 nova_enable_db_purge: {get_param: NovaEnableDBPurge}
139 - nova::api::osapi_compute_workers: {get_param: NovaWorkers}
140 nova::wsgi::apache_api::workers: {get_param: NovaWorkers}
142 include tripleo::profile::base::nova::api
143 service_config_settings:
146 - {get_attr: [NovaBase, role_data, service_config_settings, mysql]}
147 - nova::db::mysql::password: {get_param: NovaPassword}
148 nova::db::mysql::user: nova
149 nova::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
150 nova::db::mysql::dbname: nova
151 nova::db::mysql::allowed_hosts:
153 - "%{hiera('mysql_bind_host')}"
154 nova::db::mysql_api::password: {get_param: NovaPassword}
155 nova::db::mysql_api::user: nova_api
156 nova::db::mysql_api::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
157 nova::db::mysql_api::dbname: nova_api
158 nova::db::mysql_api::allowed_hosts:
160 - "%{hiera('mysql_bind_host')}"
162 nova::keystone::auth::tenant: 'service'
163 nova::keystone::auth::public_url: {get_param: [EndpointMap, NovaPublic, uri]}
164 nova::keystone::auth::internal_url: {get_param: [EndpointMap, NovaInternal, uri]}
165 nova::keystone::auth::admin_url: {get_param: [EndpointMap, NovaAdmin, uri]}
166 nova::keystone::auth::password: {get_param: NovaPassword}
167 nova::keystone::auth::region: {get_param: KeystoneRegion}