Update maas-setup.sh

This commit is contained in:
antongisli 2021-11-16 22:07:27 +01:00 committed by GitHub
parent 70c709f808
commit 7d9305d6c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ sudo snap install --channel=3.1/beta maas
sudo snap install --channel=3.1/beta maas-test-db sudo snap install --channel=3.1/beta maas-test-db
# clone the git repository # clone the git repository
cd ~
git clone https://github.com/antongisli/maas-baremetal-k8s-tutorial.git git clone https://github.com/antongisli/maas-baremetal-k8s-tutorial.git
# get local interface name (this assumes a single default route is present) # get local interface name (this assumes a single default route is present)
@ -20,7 +21,7 @@ echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo deb
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
sudo apt-get install iptables-persistent -y sudo apt-get install iptables-persistent -y
# LXD init # LXD init
sudo cat /maas-baremetal-k8s-tutorial/lxd.cfg | lxd init --preseed sudo cat maas-baremetal-k8s-tutorial/lxd.cfg | lxd init --preseed
# Wait for LXD to be ready # Wait for LXD to be ready
lxd waitready lxd waitready
# Initialise MAAS # Initialise MAAS