Fix export path; Add hostname

This commit is contained in:
Jeff 2023-06-10 18:07:38 -04:00
parent 0ae4804ebe
commit f3662e907c
2 changed files with 6 additions and 2 deletions

View File

@ -11,7 +11,11 @@ storage:
- path: /etc/exports
overwrite: true
contents:
inline: /storage-0 192.168.1.*(rw,sync)
inline: /var/storage-0 192.168.1.*(rw,sync)
- path: /etc/hostname
overwrite: true
contents:
inline: server-0
disks:
- device: /dev/sda
wipe_table: true

View File

@ -1 +1 @@
{"ignition":{"version":"3.3.0"},"passwd":{"users":[{"name":"core","passwordHash":"$y$j9T$kNtG1zoLVEs5WhA3pE5Eh1$sKckG1SOcZ/p5Vw/4bqSgttLOW5z6WonOtoW6E91mt3","sshAuthorizedKeys":["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDR7q2FfdizNkvel66N/jHcwlEA8R5JEOneKXshMWqkX jeff@station-1"]}]},"storage":{"disks":[{"device":"/dev/sda","partitions":[{"label":"storage-0","number":1}],"wipeTable":true}],"files":[{"overwrite":true,"path":"/etc/exports","contents":{"compression":"","source":"data:,%2Fstorage-0%20192.168.1.*(rw%2Csync)"}}],"filesystems":[{"device":"/dev/disk/by-partlabel/storage-0","format":"btrfs","label":"storage-0","path":"/var/storage-0","wipeFilesystem":true}]},"systemd":{"units":[{"contents":"# Generated by Butane\n[Unit]\nRequires=systemd-fsck@dev-disk-by\\x2dpartlabel-storage\\x2d0.service\nAfter=systemd-fsck@dev-disk-by\\x2dpartlabel-storage\\x2d0.service\n\n[Mount]\nWhere=/var/storage-0\nWhat=/dev/disk/by-partlabel/storage-0\nType=btrfs\n\n[Install]\nRequiredBy=local-fs.target","enabled":true,"name":"var-storage\\x2d0.mount"}]}}
{"ignition":{"version":"3.3.0"},"passwd":{"users":[{"name":"core","passwordHash":"$y$j9T$kNtG1zoLVEs5WhA3pE5Eh1$sKckG1SOcZ/p5Vw/4bqSgttLOW5z6WonOtoW6E91mt3","sshAuthorizedKeys":["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDR7q2FfdizNkvel66N/jHcwlEA8R5JEOneKXshMWqkX jeff@station-1"]}]},"storage":{"disks":[{"device":"/dev/sda","partitions":[{"label":"storage-0","number":1}],"wipeTable":true}],"files":[{"overwrite":true,"path":"/etc/exports","contents":{"compression":"","source":"data:,%2Fvar%2Fstorage-0%20192.168.1.*(rw%2Csync)"}},{"overwrite":true,"path":"/etc/hostname","contents":{"compression":"","source":"data:,server-0"}}],"filesystems":[{"device":"/dev/disk/by-partlabel/storage-0","format":"btrfs","label":"storage-0","path":"/var/storage-0","wipeFilesystem":true}]},"systemd":{"units":[{"contents":"# Generated by Butane\n[Unit]\nRequires=systemd-fsck@dev-disk-by\\x2dpartlabel-storage\\x2d0.service\nAfter=systemd-fsck@dev-disk-by\\x2dpartlabel-storage\\x2d0.service\n\n[Mount]\nWhere=/var/storage-0\nWhat=/dev/disk/by-partlabel/storage-0\nType=btrfs\n\n[Install]\nRequiredBy=local-fs.target","enabled":true,"name":"var-storage\\x2d0.mount"}]}}