Ironic: enabled_services moved from ironic to ironic::conductor manifest
[apex-tripleo-heat-templates.git] / puppet / services / nova-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Nova API service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
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.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   NovaWorkers:
22     default: 0
23     description: Number of workers for Nova API service.
24     type: number
25   NovaPassword:
26     description: The password for the nova service and db account, used by nova-api.
27     type: string
28     hidden: true
29   KeystoneRegion:
30     type: string
31     default: 'regionOne'
32     description: Keystone region for endpoint
33   NeutronMetadataProxySharedSecret:
34     description: Shared secret to prevent spoofing
35     type: string
36     hidden: true
37   InstanceNameTemplate:
38     default: 'instance-%08x'
39     description: Template string to be used to generate instance names
40     type: string
41   NovaEnableDBPurge:
42     default: true
43     description: |
44         Whether to create cron job for purging soft deleted rows in Nova database.
45     type: boolean
46   MonitoringSubscriptionNovaApi:
47     default: 'overcloud-nova-api'
48     type: string
49
50 resources:
51   NovaBase:
52     type: ./nova-base.yaml
53     properties:
54       ServiceNetMap: {get_param: ServiceNetMap}
55       DefaultPasswords: {get_param: DefaultPasswords}
56       EndpointMap: {get_param: EndpointMap}
57
58 outputs:
59   role_data:
60     description: Role data for the Nova API service.
61     value:
62       service_name: nova_api
63       monitoring_subscription: {get_param: MonitoringSubscriptionNovaApi}
64       config_settings:
65         map_merge:
66           - get_attr: [NovaBase, role_data, config_settings]
67           - nova::api::osapi_compute_workers: {get_param: NovaWorkers}
68             nova::api::metadata_workers: {get_param: NovaWorkers}
69             nova::cron::archive_deleted_rows::hour: '"*/12"'
70             nova::cron::archive_deleted_rows::destination: '"/dev/null"'
71             tripleo.nova_api.firewall_rules:
72               '113 nova_api':
73                 dport:
74                   - 6080
75                   - 13080
76                   - 8773
77                   - 3773
78                   - 8774
79                   - 13774
80                   - 8775
81             nova::keystone::authtoken::project_name: 'service'
82             nova::keystone::authtoken::password: {get_param: NovaPassword}
83             nova::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
84             nova::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
85             nova::api::enabled: true
86             nova::api::default_floating_pool: 'public'
87             nova::api::sync_db_api: true
88             nova::api::enable_proxy_headers_parsing: true
89             nova::keystone::auth::tenant: 'service'
90             nova::keystone::auth::public_url: {get_param: [EndpointMap, NovaPublic, uri]}
91             nova::keystone::auth::internal_url: {get_param: [EndpointMap, NovaInternal, uri]}
92             nova::keystone::auth::admin_url: {get_param: [EndpointMap, NovaAdmin, uri]}
93             nova::keystone::auth::password: {get_param: NovaPassword}
94             nova::keystone::auth::region: {get_param: KeystoneRegion}
95             # NOTE: bind IP is found in Heat replacing the network name with the local node IP
96             # for the given network; replacement examples (eg. for internal_api):
97             # internal_api -> IP
98             # internal_api_uri -> [IP]
99             # internal_api_subnet - > IP/CIDR
100             nova::api::api_bind_address: {get_param: [ServiceNetMap, NovaApiNetwork]}
101             nova::api::metadata_listen: {get_param: [ServiceNetMap, NovaMetadataNetwork]}
102             nova::api::neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
103             nova::api::instance_name_template: {get_param: InstanceNameTemplate}
104             nova_enable_db_purge: {get_param: NovaEnableDBPurge}
105
106       step_config: |
107         include tripleo::profile::base::nova::api