r/vmhost: mount shared filesystems

With the transition away from *dhcpcd* on the VM hosts, there is no
longer any need for a custom wait script that must run prior to
attempting to mount the shared filesystem.  This dramatically simplifies
the configuration necessary for shared storage.

I don't really see any reason why the shared storage configuration needs
to be managed by a separate role.  The *vmhost* role is not really
generic anyway, and will probably not work for any other VM host
deployment besides the two machines running now.  As such, I think it
makes sense to move the task to mount the shared filesystem into the
*vmhost* role and drop the *dch-storage-net* role.
jenkins-master
Dustin 2021-10-10 12:33:45 -05:00
parent dac34a3620
commit 9c97d0318c
2 changed files with 10 additions and 1 deletions

View File

@ -84,3 +84,13 @@
service:
name: ksm
state: started
- name: ensure storage volumes are mounted
mount:
path: '{{ item.mountpoint }}'
src: '{{ item.host }}:{{ item.share }}'
fstype: '{{ item.fstype|d("nfs") }}'
opts: '{{ item.opts|d(omit) }}'
state: mounted
with_items: '{{ mount_shared_volumes }}'
tags: mount

View File

@ -11,4 +11,3 @@
- hosts: vm-hosts
roles:
- vmhost
- dch-storage-net