1 heat_template_version: ocata
4 OpenStack containerized Neutron API service
9 default: 'tripleoupstream'
11 DockerNeutronApiImage:
13 default: 'centos-binary-neutron-server:latest'
15 # we configure all neutron services in the same neutron
16 DockerNeutronConfigImage:
18 default: 'centos-binary-neutron-openvswitch-agent:latest'
22 description: Mapping of service endpoint -> protocol. Typically set
23 via parameter_defaults in the resource registry.
27 description: Mapping of service_name -> network name. Typically set
28 via parameter_defaults in the resource registry. This
29 mapping overrides those in ServiceNetMapDefaults.
38 type: ../../puppet/services/neutron-api.yaml
40 EndpointMap: {get_param: EndpointMap}
41 ServiceNetMap: {get_param: ServiceNetMap}
42 DefaultPasswords: {get_param: DefaultPasswords}
46 description: Role data for the Neutron API role.
48 service_name: {get_attr: [NeutronBase, role_data, service_name]}
51 - get_attr: [NeutronBase, role_data, config_settings]
52 step_config: {get_attr: [NeutronBase, role_data, step_config]}
53 service_config_settings: {get_attr: [NeutronBase, role_data, service_config_settings]}
54 # BEGIN DOCKER SETTINGS
55 docker_image: &neutron_api_image
58 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronApiImage} ]
59 puppet_tags: neutron_config,neutron_api_config
60 config_volume: neutron
64 - [ {get_param: DockerNamespace}, {get_param: DockerNeutronConfigImage} ]
66 /var/lib/kolla/config_files/neutron_api.json:
67 command: /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini
69 - dest: /etc/neutron/neutron.conf
72 source: /var/lib/kolla/config_files/src/etc/neutron/neutron.conf
73 - dest: /etc/neutron/plugin.ini
76 source: /var/lib/kolla/config_files/src/etc/neutron/plugins/ml2/ml2_conf.ini
80 image: *neutron_api_image
84 # FIXME: we should make config file permissions right
85 # and run as neutron user
88 - /var/lib/config-data/neutron/etc/neutron:/etc/neutron:ro
89 - /var/lib/config-data/neutron/usr/share/neutron:/usr/share/neutron:ro
90 - /etc/hosts:/etc/hosts:ro
91 - /etc/localtime:/etc/localtime:ro
92 command: ['neutron-db-manage', 'upgrade', 'heads']
95 image: *neutron_api_image
100 - /var/lib/kolla/config_files/neutron_api.json:/var/lib/kolla/config_files/config.json:ro
101 - /var/lib/config-data/neutron/:/var/lib/kolla/config_files/src:ro
102 - /etc/hosts:/etc/hosts:ro
103 - /etc/localtime:/etc/localtime:ro
105 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS