Merge "Allow the override of pacemaker::corosync::settle_tries"
[apex-tripleo-heat-templates.git] / docker / services / nova-compute.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack containerized Nova 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'
14     type: string
15   ServiceNetMap:
16     default: {}
17     description: Mapping of service_name -> network name. Typically set
18                  via parameter_defaults in the resource registry.  This
19                  mapping overrides those in ServiceNetMapDefaults.
20     type: json
21   DefaultPasswords:
22     default: {}
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29
30 resources:
31
32   NovaComputeBase:
33     type: ../../puppet/services/nova-compute.yaml
34     properties:
35       EndpointMap: {get_param: EndpointMap}
36
37 outputs:
38   role_data:
39     description: Role data for the Nova Compute service.
40     value:
41       config_settings: {get_attr: [NovaComputeBase, role_data, config_settings]}
42       step_config: {get_attr: [NovaComputeBase, role_data, step_config]}
43       puppet_tags: nova_config,nova_paste_api_ini
44       kolla_config:
45         /var/lib/etc-data/json-config/nova-compute.json:
46            command: /usr/bin/nova-compute --config-file /etc/nova/nova.conf --config-file /etc/nova/rootwrap.conf
47            config_files:
48            - dest: /etc/nova/nova.conf
49              owner: nova
50              perm: '0600'
51              source: /var/lib/kolla/config_files/nova.conf
52            - dest: /etc/nova/rootwrap.conf
53              owner: nova
54              perm: '0600'
55              source: /var/lib/kolla/config_files/rootwrap.conf
56       docker_config:
57         step_1:
58           novacompute:
59             image:
60               list_join:
61               - '/'
62               - [ {get_param: DockerNamespace}, {get_param: DockerNovaComputeImage} ]
63             net: host
64             privileged: true
65             user: root
66             restart: always
67             volumes:
68               - /var/lib/etc-data/json-config/nova-compute.json:/var/lib/kolla/config_files/config.json
69               - /var/lib/etc-data/nova/nova.conf:/var/lib/kolla/config_files/nova.conf:ro
70               - /var/lib/etc-data/nova/rootwrap.conf:/var/lib/kolla/config_files/rootwrap.conf:ro
71               - /etc/localtime:/etc/localtime:ro
72               - /lib/modules:/lib/modules:ro
73               - /run:/run
74               - /dev:/dev
75               - logs:/var/log/kolla/
76               - /etc/iscsi:/etc/iscsi
77               - libvirtd:/var/lib/libvirt
78               - nova_compute:/var/lib/nova/
79             environment:
80              - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
81         step_2: {}