Update maas-setup.sh
This commit is contained in:
parent
1da8a22b93
commit
70c709f808
@ -5,6 +5,9 @@ sudo snap install jq
|
||||
sudo snap install --channel=3.1/beta maas
|
||||
sudo snap install --channel=3.1/beta maas-test-db
|
||||
|
||||
# clone the git repository
|
||||
git clone https://github.com/antongisli/maas-baremetal-k8s-tutorial.git
|
||||
|
||||
# get local interface name (this assumes a single default route is present)
|
||||
export INTERFACE=$(ip route | grep default | cut -d ' ' -f 5)
|
||||
export IP_ADDRESS=$(ip -4 addr show dev $INTERFACE | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
|
||||
@ -17,7 +20,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
|
||||
sudo apt-get install iptables-persistent -y
|
||||
# LXD init
|
||||
sudo cat /tmp/lxd.cfg | lxd init --preseed
|
||||
sudo cat /maas-baremetal-k8s-tutorial/lxd.cfg | lxd init --preseed
|
||||
# Wait for LXD to be ready
|
||||
lxd waitready
|
||||
# Initialise MAAS
|
||||
|
Loading…
Reference in New Issue
Block a user