r/vmhost: Install mount helpers
Filesystems like NFS and CIFS require "helper" utilities (i.e. `mount.nfs` and `mount.cifs`, respectively). These need to be installed in order for a system to be able to mount those filesystems. The current shared storage system uses NFSv4, and as such, the *nfs-utils* package needs to be installed on the VM hosts.jenkins-master
parent
9c97d0318c
commit
3be9c40f2b
|
@ -12,6 +12,8 @@ libvirt_networks:
|
||||||
type: bridge
|
type: bridge
|
||||||
bridge_iface: mgmt
|
bridge_iface: mgmt
|
||||||
storage_host: storage0.pyrocufflink.blue
|
storage_host: storage0.pyrocufflink.blue
|
||||||
|
shared_volume_mount_packages:
|
||||||
|
- nfs-utils
|
||||||
mount_shared_volumes:
|
mount_shared_volumes:
|
||||||
- mountpoint: /var/lib/libvirt/images
|
- mountpoint: /var/lib/libvirt/images
|
||||||
host: '[{{ lookup("dig", storage_host, "qtype=AAAA") }}]'
|
host: '[{{ lookup("dig", storage_host, "qtype=AAAA") }}]'
|
||||||
|
|
|
@ -85,6 +85,11 @@
|
||||||
name: ksm
|
name: ksm
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
|
- name: ensure required mount helper utilities are installed
|
||||||
|
package:
|
||||||
|
name: '{{ shared_volume_mount_packages }}'
|
||||||
|
state: present
|
||||||
|
tags: install
|
||||||
- name: ensure storage volumes are mounted
|
- name: ensure storage volumes are mounted
|
||||||
mount:
|
mount:
|
||||||
path: '{{ item.mountpoint }}'
|
path: '{{ item.mountpoint }}'
|
||||||
|
|
Loading…
Reference in New Issue