Merge "Keystone token flush cron job should log to a file"
[apex-tripleo-heat-templates.git] / docker / services / nova-ironic.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack containerized Nova Ironic Compute service
5
6 parameters:
7   DockerNamespace:
8     description: namespace
9     default: 'tripleoupstream'
10     type: string
11   DockerNovaComputeImage:
12     description: image
13     default: 'centos-binary-nova-compute-ironic:latest'
14     type: string
15   DockerNovaBaseImage:
16     description: image
17     default: 'centos-binary-nova-base:latest'
18     type: string
19   ServiceNetMap:
20     default: {}
21     description: Mapping of service_name -> network name. Typically set
22                  via parameter_defaults in the resource registry.  This
23                  mapping overrides those in ServiceNetMapDefaults.
24     type: json
25   DefaultPasswords:
26     default: {}
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33
34 resources:
35
36
37   NovaIronicBase:
38     type: ../../puppet/services/nova-ironic.yaml
39     properties:
40       EndpointMap: {get_param: EndpointMap}
41
42 outputs:
43   role_data:
44     description: Role data for the Nova Compute service.
45     value:
46       service_name: {get_attr: [NovaIronicBase, role_data, service_name]}
47       config_settings: {get_attr: [NovaIronicBase, role_data, config_settings]}
48       step_config: &step_config
49         get_attr: [NovaIronicBase, role_data, step_config]
50       docker_image: &nova_ironic_image
51         list_join:
52         - '/'
53         - [ {get_param: DockerNamespace}, {get_param: DockerNovaComputeImage} ]
54       puppet_config:
55         config_volume: nova
56         puppet_tags: nova_config,nova_paste_api_ini
57         step_config: *step_config
58         config_image:
59           list_join:
60           - '/'
61           - [ {get_param: DockerNamespace}, {get_param: DockerNovaBaseImage} ]
62       kolla_config:
63         /var/lib/kolla/config_files/nova_ironic.json:
64            command: /usr/bin/nova-compute --config-file /etc/nova/nova.conf --config-file /etc/nova/rootwrap.conf
65            config_files:
66            - dest: /etc/nova/nova.conf
67              owner: nova
68              perm: '0600'
69              source: /var/lib/kolla/config_files/src/etc/nova/nova.conf
70            - dest: /etc/nova/rootwrap.conf
71              owner: nova
72              perm: '0600'
73              source: /var/lib/kolla/config_files/src/etc/nova/rootwrap.conf
74       docker_config:
75         step_5:
76           novacompute:
77             image: *nova_ironic_image
78             net: host
79             privileged: true
80             user: root
81             restart: always
82             volumes:
83               - /var/lib/kolla/config_files/nova_ironic.json:/var/lib/kolla/config_files/config.json:ro
84               - /var/lib/config-data/nova:/var/lib/kolla/config_files/src:ro
85               - /etc/localtime:/etc/localtime:ro
86               - /run:/run
87               - /dev:/dev
88               - /etc/iscsi:/etc/iscsi
89               - nova_compute:/var/lib/nova/
90             environment:
91              - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS