Add NFS exports file; Improve syntax

This commit is contained in:
Jeff 2023-06-09 12:14:16 -04:00
parent 42d9f150d9
commit 015e795e64

View File

@ -37,6 +37,10 @@ systemd:
[Install] [Install]
WantedBy=multi-user.targetstorage: WantedBy=multi-user.targetstorage:
storage: storage:
files:
- path: /etc/exports
contents:
inline: /storage-0 192.168.1.*(rw,sync)
disks: disks:
- device: /dev/disk/by-id/nvme-WD_Blue_SN570_500GB_22400V806157 - device: /dev/disk/by-id/nvme-WD_Blue_SN570_500GB_22400V806157
wipe_table: true wipe_table: true
@ -47,21 +51,22 @@ storage:
label: swap label: swap
filesystems: filesystems:
- path: /var - path: /var
label: var
device: /dev/disk/by-partlabel/var device: /dev/disk/by-partlabel/var
format: btrfs format: btrfs
wipe_filesystem: true wipe_filesystem: false
label: var
with_mount_unit: true with_mount_unit: true
- path: /swap - path: /swap
label: swap
device: /dev/disk/by-partlabel/swap device: /dev/disk/by-partlabel/swap
format: swap format: swap
wipe_filesystem: true wipe_filesystem: true
with_mount_unit: true with_mount_unit: true
- path: /storage-0 - path: /storage-0
label: storage-0
device: /dev/disk/by-partlabel/storage-0 device: /dev/disk/by-partlabel/storage-0
format: btrfs format: btrfs
wipe_filesystem: false wipe_filesystem: false
label: storage-0
with_mount_unit: true with_mount_unit: true
luks: luks:
- name: static-key - name: static-key