Update maas-setup.sh

This commit is contained in:
antongisli 2021-11-16 22:11:38 +01:00 committed by GitHub
parent 903c709207
commit 51b6328ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ lxd waitready
sudo maas init region+rack --database-uri maas-test-db:/// --maas-url http://${IP_ADDRESS}:5240/MAAS sudo maas init region+rack --database-uri maas-test-db:/// --maas-url http://${IP_ADDRESS}:5240/MAAS
sleep 15 sleep 15
# Create MAAS admin and grab API key # Create MAAS admin and grab API key
maas createadmin --username admin --password admin --email admin sudo maas createadmin --username admin --password admin --email admin
export APIKEY=$(sudo maas apikey --username admin) export APIKEY=$(sudo maas apikey --username admin)
# MAAS admin login # MAAS admin login
maas login admin 'http://localhost:5240/MAAS/' $APIKEY maas login admin 'http://localhost:5240/MAAS/' $APIKEY