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 DockerNovaConfigImage:
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: ./containers-common.yaml
42 type: ../../puppet/services/nova-libvirt.yaml
44 EndpointMap: {get_param: EndpointMap}
45 ServiceNetMap: {get_param: ServiceNetMap}
46 DefaultPasswords: {get_param: DefaultPasswords}
50 description: Role data for the Libvirt service.
52 service_name: {get_attr: [NovaLibvirtBase, role_data, service_name]}
53 config_settings: {get_attr: [NovaLibvirtBase, role_data, config_settings]}
54 step_config: &step_config
55 get_attr: [NovaLibvirtBase, role_data, step_config]
57 config_volume: nova_libvirt
58 puppet_tags: nova_config
59 step_config: *step_config
63 - [ {get_param: DockerNamespace}, {get_param: DockerNovaConfigImage} ]
65 /var/lib/kolla/config_files/nova-libvirt.json:
66 command: /usr/sbin/libvirtd --config /etc/libvirt/libvirtd.conf
73 - [ {get_param: DockerNamespace}, {get_param: DockerLibvirtImage} ]
80 expression: $.data.common.concat($.data.service)
82 common: {get_attr: [ContainersCommon, volumes]}
84 - /var/lib/kolla/config_files/nova-libvirt.json:/var/lib/kolla/config_files/config.json:ro
85 - /var/lib/config-data/nova_libvirt/etc/libvirt/:/etc/libvirt/:ro
86 - /lib/modules:/lib/modules:ro
89 - /sys/fs/cgroup:/sys/fs/cgroup
90 - /var/lib/nova:/var/lib/nova
91 # Needed to use host's virtlogd
92 - /var/run/libvirt:/var/run/libvirt
93 - /var/lib/libvirt:/var/lib/libvirt
94 - /etc/libvirt/qemu:/etc/libvirt/qemu
96 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
98 - name: create libvirt persistent data directories
106 - name: Stop and disable libvirtd service
108 service: name=libvirtd state=stopped enabled=no