Merge "ec2-api: Get FQDN from hiera instead of puppet fact"
[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: &step_config
51         get_attr: [NovaConductorBase, role_data, step_config]
52       service_config_settings: {get_attr: [NovaConductorBase, role_data, service_config_settings]}
53       # BEGIN DOCKER SETTINGS
54       docker_image: &nova_conductor_image
55         list_join:
56           - '/'
57           - [ {get_param: DockerNamespace}, {get_param: DockerNovaConductorImage} ]
58       puppet_config:
59         config_volume: nova
60         puppet_tags: nova_config
61         step_config: *step_config
62         config_image:
63           list_join:
64           - '/'
65           - [ {get_param: DockerNamespace}, {get_param: DockerNovaBaseImage} ]
66       kolla_config:
67          /var/lib/kolla/config_files/nova_conductor.json:
68            command: /usr/bin/nova-conductor
69            config_files:
70            - dest: /etc/nova/nova.conf
71              owner: nova
72              perm: '0600'
73              source: /var/lib/kolla/config_files/src/etc/nova/nova.conf
74       docker_config:
75         step_4:
76           nova_conductor:
77             image: *nova_conductor_image
78             net: host
79             privileged: false
80             restart: always
81             volumes:
82               - /run:/run
83               - /var/lib/kolla/config_files/nova_conductor.json:/var/lib/kolla/config_files/config.json:ro
84               - /var/lib/config-data/nova/:/var/lib/kolla/config_files/src:ro
85               - /etc/hosts:/etc/hosts:ro
86               - /etc/localtime:/etc/localtime:ro
87             environment:
88               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS