Merge "Continue checking for request url if initially null"
[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               # NOTE(mandre) Ideally the qemu.conf file is mounted in
59               # /var/lib/kolla/config_files and copied to the right place but
60               # copy-json.py doesn't allow us to do that without appending the
61               # file as an additional config on the CLI
62               - /var/lib/etc-data/libvirt/qemu.conf:/etc/libvirt/qemu.conf:ro
63               - /etc/localtime:/etc/localtime:ro
64               - /lib/modules:/lib/modules:ro
65               - /run:/run
66               - /dev:/dev
67               - /sys/fs/cgroup:/sys/fs/cgroup
68               - logs:/var/log/kolla/
69               - libvirtd:/var/lib/libvirt
70               - nova_compute:/var/lib/nova/
71               - nova_libvirt_qemu:/etc/libvirt/qemu
72             environment:
73               - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
74         step_2: {}