1 heat_template_version: ocata
4 OpenStack containerized Nova API service
9 default: 'tripleoupstream'
13 default: 'centos-binary-nova-api:latest'
17 default: 'centos-binary-nova-base:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
37 type: ../../puppet/services/nova-api.yaml
39 EndpointMap: {get_param: EndpointMap}
40 ServiceNetMap: {get_param: ServiceNetMap}
41 DefaultPasswords: {get_param: DefaultPasswords}
45 description: Role data for the Nova API role.
47 service_name: {get_attr: [NovaApiBase, role_data, service_name]}
50 - get_attr: [NovaApiBase, role_data, config_settings]
51 - apache::default_vhost: false
52 step_config: &step_config
53 get_attr: [NovaApiBase, role_data, step_config]
54 service_config_settings: {get_attr: [NovaApiBase, role_data, service_config_settings]}
55 # BEGIN DOCKER SETTINGS
56 docker_image: &nova_api_image
59 - [ {get_param: DockerNamespace}, {get_param: DockerNovaApiImage} ]
62 puppet_tags: nova_config
63 step_config: *step_config
67 - [ {get_param: DockerNamespace}, {get_param: DockerNovaBaseImage} ]
69 /var/lib/kolla/config_files/nova_api.json:
70 command: /usr/bin/nova-api
72 - dest: /etc/nova/nova.conf
75 source: /var/lib/kolla/config_files/src/etc/nova/nova.conf
80 image: *nova_api_image
83 volumes: &nova_api_volumes
84 - /var/lib/config-data/nova/etc/:/etc/:ro
85 - /etc/hosts:/etc/hosts:ro
86 - /etc/localtime:/etc/localtime:ro
87 command: ['/usr/bin/nova-manage', 'api_db', 'sync']
88 # FIXME: we probably want to wait on the 'cell_v2 update' in order for this
89 # to be capable of upgrading a baremetal setup. This is to ensure the name
90 # of the cell is 'default'
93 image: *nova_api_image
96 volumes: *nova_api_volumes
98 - '/usr/bin/nova-manage'
101 nova_api_create_default_cell:
103 image: *nova_api_image
106 volumes: *nova_api_volumes
107 # NOTE: allowing the exit code 2 is a dirty way of making
108 # this idempotent (if the resource already exists a conflict
112 - '/usr/bin/nova-manage'
118 image: *nova_api_image
121 volumes: *nova_api_volumes
122 command: ['/usr/bin/nova-manage', 'db', 'sync']
126 image: *nova_api_image
132 - /var/lib/kolla/config_files/nova_api.json:/var/lib/kolla/config_files/config.json:ro
133 - /var/lib/config-data/nova/:/var/lib/kolla/config_files/src:ro
134 - /etc/hosts:/etc/hosts:ro
135 - /etc/localtime:/etc/localtime:ro
137 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
138 nova_api_discover_hosts:
140 image: *nova_api_image
143 volumes: *nova_api_volumes
145 - '/usr/bin/nova-manage'