1 heat_template_version: ocata
4 OpenStack Libvirt Service
9 default: 'tripleoupstream'
13 default: 'centos-binary-nova-libvirt:latest'
15 # we configure libvirt via the nova-compute container due to coupling
16 # in the puppet modules
17 DockerNovaComputeImage:
19 default: 'centos-binary-nova-compute:latest'
23 description: Mapping of service_name -> network name. Typically set
24 via parameter_defaults in the resource registry. This
25 mapping overrides those in ServiceNetMapDefaults.
32 description: Mapping of service endpoint -> protocol. Typically set
33 via parameter_defaults in the resource registry.
39 type: ../../puppet/services/nova-libvirt.yaml
41 EndpointMap: {get_param: EndpointMap}
42 ServiceNetMap: {get_param: ServiceNetMap}
43 DefaultPasswords: {get_param: DefaultPasswords}
47 description: Role data for the Libvirt service.
49 service_name: {get_attr: [NovaLibvirtBase, role_data, service_name]}
50 config_settings: {get_attr: [NovaLibvirtBase, role_data, config_settings]}
51 step_config: &step_config
52 get_attr: [NovaLibvirtBase, role_data, step_config]
53 docker_image: &libvirt_image
56 - [ {get_param: DockerNamespace}, {get_param: DockerLibvirtImage} ]
58 config_volume: nova_libvirt
59 puppet_tags: nova_config
60 step_config: *step_config
64 - [ {get_param: DockerNamespace}, {get_param: DockerNovaComputeImage} ]
66 /var/lib/kolla/config_files/nova-libvirt.json:
67 command: /usr/sbin/libvirtd --config /etc/libvirt/libvirtd.conf
69 - dest: /etc/libvirt/libvirtd.conf
72 source: /var/lib/kolla/config_files/src/etc/libvirt/libvirtd.conf
82 - /var/lib/kolla/config_files/nova-libvirt.json:/var/lib/kolla/config_files/config.json:ro
83 - /var/lib/config-data/nova_libvirt:/var/lib/kolla/config_files/src:ro
85 - /etc/localtime:/etc/localtime:ro
86 - /lib/modules:/lib/modules:ro
88 - /sys/fs/cgroup:/sys/fs/cgroup
89 - /var/lib/nova:/var/lib/nova
90 # Needed to use host's virtlogd
91 - /var/run/libvirt:/var/run/libvirt
92 - libvirtd:/var/lib/libvirt
93 - nova_libvirt_qemu:/etc/libvirt/qemu
95 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS