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
Dustin 2021-10-10 12:36:42 -05:00
parent 9c97d0318c
commit 3be9c40f2b
2 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,8 @@ libvirt_networks:
type: bridge
bridge_iface: mgmt
storage_host: storage0.pyrocufflink.blue
shared_volume_mount_packages:
- nfs-utils
mount_shared_volumes:
- mountpoint: /var/lib/libvirt/images
host: '[{{ lookup("dig", storage_host, "qtype=AAAA") }}]'

View File

@ -85,6 +85,11 @@
name: ksm
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
mount:
path: '{{ item.mountpoint }}'