Remove vino pool mounts

Change-Id: If02d95c925dc1e8b537e1609fea314b5b60ed36f
This commit is contained in:
Kostiantyn Kalynovskyi 2021-06-18 04:03:39 +00:00 committed by Kostyantyn Kalynovskyi
parent 7602aa5324
commit 6ca0fcff0c
2 changed files with 8 additions and 9 deletions

View File

@ -51,8 +51,6 @@ spec:
mountPath: /sys/fs/cgroup
- name: logs
mountPath: /var/log/libvirt
- name: var-lib-vino-pool
mountPath: /var/lib/libvirt/vino-pool
- name: etc-qemu
mountPath: /etc/libvirt/qemu
- name: etc-nwfilter
@ -151,8 +149,6 @@ spec:
mountPath: /var/lib/libvirt
- name: var-run-libvirt
mountPath: /var/run/libvirt
- name: var-lib-vino-pool
mountPath: /var/lib/libvirt/vino-pool
- name: run
mountPath: /run
- name: dev
@ -201,10 +197,6 @@ spec:
defaultMode: 0555
- name: pod-tmp
emptyDir: {}
- name: var-lib-vino-pool
hostPath:
path: /var/lib/vino-pool
type: DirectoryOrCreate
- name: etc-qemu
hostPath:
path: /etc/vino-qemu

View File

@ -4,12 +4,19 @@
command: facts
uri: "{{ libvirt_uri }}"
- name: create directory for vino pool
file:
state: directory
# TODO remove this hardcode, define vino storage variables in vino CR
path: "/var/lib/libvirt/vino-pool"
mode: 0755
- name: define storage the storage pool
virt_pool:
state: present
name: "{{ item.name }}"
uri: "{{ libvirt_uri }}"
xml: "{{item.libvirtTemplate}}"
xml: "{{ item.libvirtTemplate }}"
- name: activate the storage pool
virt_pool: