Merge "neutron: don't set external_network_bridge option by default"
[apex-tripleo-heat-templates.git] / docker / services / nova-conductor.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack containerized Nova Conductor service
5
6 parameters:
7   DockerNamespace:
8     description: namespace
9     default: 'tripleoupstream'
10     type: string
11   DockerNovaConductorImage:
12     description: image
13     default: 'centos-binary-nova-conductor:latest'
14     type: string
15   DockerNovaBaseImage:
16     description: image
17     default: 'centos-binary-nova-base:latest'
18     type: string
19   EndpointMap:
20     default: {}
21     description: Mapping of service endpoint -> protocol. Typically set
22                  via parameter_defaults in the resource registry.
23     type: json
24   ServiceNetMap:
25     default: {}
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.
29     type: json
30   DefaultPasswords:
31     default: {}
32     type: json
33
34
35 resources:
36
37   NovaConductorBase:
38     type: ../../puppet/services/nova-conductor.yaml
39     properties:
40       EndpointMap: {get_param: EndpointMap}
41       ServiceNetMap: {get_param: ServiceNetMap}
42       DefaultPasswords: {get_param: DefaultPasswords}
43
44 outputs:
45   role_data:
46     description: Role data for the Nova Conductor service.
47     value:
48       service_name: {get_attr: [NovaConductorBase, role_data, service_name]}
49       config_settings: {get_attr: [NovaConductorBase, role_data, config_settings]}
50       step_config: {get_attr: [NovaConductorBase, role_data, step_config]}
51       service_config_settings: {get_attr: [NovaConductorBase, role_data, service_config_settings]}
52       # BEGIN DOCKER SETTINGS
53       docker_image: &nova_conductor_image
54         list_join:
55           - '/'
56           - [ {get_param: DockerNamespace}, {get_param: DockerNovaConductorImage} ]
57       puppet_tags: nova_config
58       config_volume: nova
59       config_image:
60         list_join:
61         - '/'
62         - [ {get_param: DockerNamespace}, {get_param: DockerNovaBaseImage} ]
63       kolla_config:
64          /var/lib/kolla/config_files/nova_conductor.json:
65            command: /usr/bin/nova-conductor
66            config_files:
67            - dest: /etc/nova/nova.conf
68              owner: nova
69              perm: '0600'
70              source: /var/lib/kolla/config_files/src/etc/nova/nova.conf
71       docker_config:
72         step_4:
73           nova_conductor:
74             image: *nova_conductor_image
75             net: host
76             privileged: false
77             restart: always
78             volumes:
79               - /run:/run
80               - /var/lib/kolla/config_files/nova_conductor.json:/var/lib/kolla/config_files/config.json:ro
81               - /var/lib/config-data/nova/:/var/lib/kolla/config_files/src:ro
82               - /etc/hosts:/etc/hosts:ro
83               - /etc/localtime:/etc/localtime:ro
84             environment:
85               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS