(partially) automate cluster join

Signed-off-by: kayos@tcp.direct <kayos@tcp.direct>
This commit is contained in:
kayos@tcp.direct 2022-12-16 07:35:18 -08:00
parent 67022ec386
commit b8a2f18822
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

@ -156,8 +156,11 @@ function user_ops() {
function lxc_ops() {
echo -e "$_SUBUID" >>/etc/subuid || return 1
echo -e "$_SUBGID" >>/etc/subgid || return 1
snap install lxd || return 1
lxd init
# non destructive - if pre-existing it will fail
lxd init --auto --storage-backend btrfs --storage-create-device /dev/sda3
}
function log() {
_date="\e[90m[$(date -u +'%H:%M:%S')]${RESET}"