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
parent
dac34a3620
commit
9c97d0318c
|
@ -84,3 +84,13 @@
|
||||||
service:
|
service:
|
||||||
name: ksm
|
name: ksm
|
||||||
state: started
|
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
|
||||||
|
|
|
@ -11,4 +11,3 @@
|
||||||
- hosts: vm-hosts
|
- hosts: vm-hosts
|
||||||
roles:
|
roles:
|
||||||
- vmhost
|
- vmhost
|
||||||
- dch-storage-net
|
|
||||||
|
|
Loading…
Reference in New Issue