Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

maas (8) Versions 2.0.0

Installs/Configures maas

Policyfile
Berkshelf
Knife
cookbook 'maas', '= 2.0.0', :supermarket
cookbook 'maas', '= 2.0.0'
knife supermarket install maas
knife supermarket download maas
README
Dependencies
Quality 0%

maas

Build Status

This is a cookbook to deploy maas via chef.

It requires the apt cookbook.

Ubuntu 14.04 is the only supported distro and version.

After it has converged successfully, you should follow the steps installing maas.

The default.rb will install the default installation of MAAS. While the clustercontroller will only build you a cluster controller.

Attributes

You will want to changes these attributes around, these are the defaults.

Create the Superuser
ruby
default['maas']['create_superuser'] = true

Superuser name
ruby
default['maas']['superuser_name'] = "admin"

Superuser password
ruby
default['maas']['superuser_password'] = "admin"

Superuser email
ruby
default['maas']['superuser_email'] = "fakeemail@fake.com"

The secret for your cluster controller, whatever is on your region controller.
ruby
default['maas']['cluster_secret'] = 'f0a6035342ed1651f822d26fe1ed0109'

Your region controller, just ip or hostname
ruby
default['maas']['cluster_region_controller'] = '127.0.0.1'

Adding another nic after provisioning

If you and another network interface card after your initial provisioning you will have to do the following:
bash
$ 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.

Testing

There are chefspec tests which you can run via chef-dk.
bash
$ chef exec rspec spec

There is also kitchen integration tests that you can run via chef-dk.
bash
$ chef exec kitchen test

Dependent cookbooks

apt >= 2.6.1

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric
            

2.0.0 failed this metric

FC023: Prefer conditional attributes: /tmp/cook/6b0e8b5f973c36814ad651ea/maas/recipes/default.rb:23