How do you access the MAAS CLI?
Matthew Harrington
How do you access the MAAS CLI after new/fresh installation?
1 Answer
After you install MAAS, you must populate it with an admin account.
maas createadmin --username=${MAAS_USER} --password=${MAAS_PASSWORD} --email=${MAAS_EMAIL}
Put the MAAS admin password in a read-only hidden file. (Your security requirements for password management may differ...)
echo ${MAAS_PASSWORD} >| /root/.maas ; chmod 600 /root/.maas
Login to MAAS.
maas login ${MAAS_USER} - < /root/.maas
Run a command to test. For example:
maas ${MAAS_USER} fabrics read