Everything that is related to MAAS automation.
- VirtualBox and Vagrant (used only for the
local
inventory) - Ansible (used both for local, and on the maas-server)
- local
The local one is only used for some local test and play with MAAS.
More detailed steps see HERE.
- dev
An example for non-vm env.
This is done via a manual install, everything default, with Ubuntu Server ISO latest version Ubuntu 18.04.1 LTS.
If you want to create a maas in a VM locally to have a test:
vagrant up
ansible-playbook -i inventories/local playbooks/local.yml
This will launch a VM with Ubuntu 18.04 and install maas, and create a default admin user.
Note: since this role creates an MAAS admin, and without the admin user it's impossible to check existing users from CLI, so:
- this playbook can't be run twice
- if it fails somewhere after admin user creation, you will have to delete the admin via web UI then re-run it
To cleanup local VMs: vagrant destroy -f
Because configuring maas requires login, maas-cli, etc, this has to be done on the maas server.
# MAAS server admin user and IP, can only reached within office network
ssh tiexin@192.168.200.9
# clone this repo
ansible-playbook -i inventories/dev main.yml
This playbook also is compatible with local VM maas created by the previous step.
Note: this is not Not tested because the maas server does not have access to all the nodes, some are created by others.
Examples see HERE.
Discussion see HERE.