Mount up NFS over ZT on desktop machines

This commit is contained in:
Salt 2021-03-09 15:50:04 -06:00
parent 25ce121337
commit 171d769d17
2 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,13 @@
# Required for Randovania to access Dolphin memory # Required for Randovania to access Dolphin memory
capability: cap_sys_ptrace=eip capability: cap_sys_ptrace=eip
tags: [ desktop, python, cap ] tags: [ desktop, python, cap ]
tasks:
- name: assure pi-storage-1 nfs mountpoint
file: path=/nfs/pi-storage-1.desu.ltd state=directory owner=root mode=0755
tags: [ desktop, nfs ]
- name: assure pi-storage-1 nfs mount
mount: path=/nfs/pi-storage-1.desu.ltd src=pi-storage-1.desu.ltd:/srv/nfs fstype=nfs4 opts="rsize=10248576,wsize=1048576,soft,timeo=600,retrans=2" state=mounted
tags: [ desktop, nfs ]
roles: roles:
- role: backup - role: backup
vars: vars:

View File

@ -55,6 +55,7 @@
- role: nfs - role: nfs
vars: vars:
nfs_exports: nfs_exports:
- "/srv/nfs 172.23.0.0/16(ro,no_root_squash,sync)"
- "/srv/nfs/bulk 192.168.0.0/16(rw,no_root_squash,sync) 172.23.0.0/16(rw,no_root_squash,sync)" - "/srv/nfs/bulk 192.168.0.0/16(rw,no_root_squash,sync) 172.23.0.0/16(rw,no_root_squash,sync)"
- "/srv/nfs/bulk/media 192.168.0.0/16(rw,no_root_squash,sync) 172.23.0.0/16(rw,no_root_squash,sync)" - "/srv/nfs/bulk/media 192.168.0.0/16(rw,no_root_squash,sync) 172.23.0.0/16(rw,no_root_squash,sync)"
- "/srv/nfs/k8s 192.168.102.0/24(rw,no_root_squash,sync) 172.23.0.0/16(ro,no_root_squash,sync)" - "/srv/nfs/k8s 192.168.102.0/24(rw,no_root_squash,sync) 172.23.0.0/16(ro,no_root_squash,sync)"