From f3662e907cbe940670858d57ef78dcf0c719e119 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 10 Jun 2023 18:07:38 -0400 Subject: [PATCH] Fix export path; Add hostname --- server-0.bu | 6 +++++- server-0.ign | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server-0.bu b/server-0.bu index 58d5c13..c0ff464 100644 --- a/server-0.bu +++ b/server-0.bu @@ -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 diff --git a/server-0.ign b/server-0.ign index 519bd81..2c0d792 100644 --- a/server-0.ign +++ b/server-0.ign @@ -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"}]}}