Merge "Make update-from-keystone-admin-internal-api.yaml work on newton+"
[apex-tripleo-heat-templates.git] / docker / services / nova-libvirt.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Libvirt Service
5
6 parameters:
7   DockerNamespace:
8     description: namespace
9     default: 'tripleoupstream'
10     type: string
11   DockerLibvirtImage:
12     description: image
13     default: 'centos-binary-libvirt'
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   NovaLibvirtBase:
33     type: ../../puppet/services/nova-libvirt.yaml
34     properties:
35       EndpointMap: {get_param: EndpointMap}
36
37 outputs:
38   role_data:
39     description: Role data for the Libvirt service.
40     value:
41       config_settings: {get_attr: [NovaLibvirtBase, role_data, config_settings]}
42       step_config: {get_attr: [NovaLibvirtBase, role_data, step_config]}
43       puppet_tags: nova_config
44       docker_config:
45         step_1:
46           nova_libvirt:
47             image:
48               list_join:
49                 - '/'
50                 - [ {get_param: DockerNamespace}, {get_param: DockerLibvirtImage} ]
51             net: host
52             pid: host
53             privileged: true
54             restart: always
55             volumes:
56               - /var/lib/etc-data/json-config/nova-libvirt.json:/var/lib/kolla/config_files/config.json
57               - /var/lib/etc-data/libvirt/libvirtd.conf:/var/lib/kolla/config_files/libvirtd.conf
58               - /etc/localtime:/etc/localtime:ro
59               - /lib/modules:/lib/modules:ro
60               - /run:/run
61               - /dev:/dev
62               - /sys/fs/cgroup:/sys/fs/cgroup
63               - logs:/var/log/kolla/
64               - libvirtd:/var/lib/libvirt
65               - nova_compute:/var/lib/nova/
66               - nova_libvirt_qemu:/etc/libvirt/qemu
67             environment:
68               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
69         step_2: {}