diff --git a/config/manager/daemonset-template.yaml b/config/manager/daemonset-template.yaml index 7c7b5ef..77f35d8 100644 --- a/config/manager/daemonset-template.yaml +++ b/config/manager/daemonset-template.yaml @@ -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 diff --git a/vino-builder/assets/playbooks/roles/libvirt/tasks/create-storage.yaml b/vino-builder/assets/playbooks/roles/libvirt/tasks/create-storage.yaml index 64dfd23..4f73b68 100644 --- a/vino-builder/assets/playbooks/roles/libvirt/tasks/create-storage.yaml +++ b/vino-builder/assets/playbooks/roles/libvirt/tasks/create-storage.yaml @@ -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: