This cookbook installs and configures the main MAAS application and a Cluster Controller via one of the two recipes.
The default.rb
will install the default installation of MAAS. While the clustercontroller
will only build you a cluster controller.
After it has converged successfully, you should follow the steps installing maas.
Ubuntu 14.04 is the only supported distro and version.
It requires the apt
cookbook.
Change the following attributes around via your preferred methods, and select one of the two recipes and run chef.
You will want to changes these attributes around, these are the defaults.
Create the Superuser
default['maas']['create_superuser'] = true
Superuser name
default['maas']['superuser_name'] = "admin"
Superuser password
default['maas']['superuser_password'] = "admin"
Superuser email
default['maas']['superuser_email'] = "fakeemail@fake.com"
The secret for your cluster controller, whatever is on your region controller.
default['maas']['cluster_secret'] = 'f0a6035342ed1651f822d26fe1ed0109'
Your region controller, just ip or hostname
default['maas']['cluster_region_controller'] = '127.0.0.1'
If you and another network interface card after your initial provisioning you will have to do the following:
$ sudo dpkg-reconfigure maas-cluster-controller
$ sudo dpkg-reconfigure maas-region-controller
And make sure they are the address on the network you want to have MaaS provision.
There are chefspec tests which you can run via chef-dk.
$ chef exec rspec spec
There is also kitchen integration tests that you can run via chef-dk.
$ chef exec kitchen test