Add DefaultPasswords to composable services
[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
34 resources:
35   NovaBase:
36     type: ./nova-base.yaml
37     properties:
38       ServiceNetMap: {get_param: ServiceNetMap}
39       DefaultPasswords: {get_param: DefaultPasswords}
40       EndpointMap: {get_param: EndpointMap}
41
42 outputs:
43   role_data:
44     description: Role data for the Nova API service.
45     value:
46       service_name: nova_api
47       config_settings:
48         map_merge:
49           - get_attr: [NovaBase, role_data, config_settings]
50           - nova::api::osapi_compute_workers: {get_param: NovaWorkers}
51             nova::api::metadata_workers: {get_param: NovaWorkers}
52             nova::cron::archive_deleted_rows::hour: '"*/12"'
53             nova::cron::archive_deleted_rows::destination: '"/dev/null"'
54             tripleo.nova_api.firewall_rules:
55               '113 nova_api':
56                 dport:
57                   - 6080
58                   - 13080
59                   - 8773
60                   - 3773
61                   - 8774
62                   - 13774
63                   - 8775
64             nova::api::admin_tenant_name: 'service'
65             nova::api::enabled: true
66             nova::api::default_floating_pool: 'public'
67             nova::api::sync_db_api: true
68             nova::api::enable_proxy_headers_parsing: true
69             nova::keystone::auth::tenant: 'service'
70             nova::keystone::auth::public_url: {get_param: [EndpointMap, NovaPublic, uri]}
71             nova::keystone::auth::internal_url: {get_param: [EndpointMap, NovaInternal, uri]}
72             nova::keystone::auth::admin_url: {get_param: [EndpointMap, NovaAdmin, uri]}
73             nova::keystone::auth::password: {get_param: NovaPassword}
74             nova::keystone::auth::region: {get_param: KeystoneRegion}
75       step_config: |
76         include tripleo::profile::base::nova::api