Issue link: https://read.uberflip.com/i/1334488
In the Datacenter 214 Installing MAAS for bare-metal provisioning There are a number of ways, such as Cobbler and Kickstart, to provision an operating system such as Ubuntu to bare-metal. Ubuntu provides a convenient tool for bare-metal provisioning of servers in our datacenter that they call MAAS, which stands for Metal-as-a-Service. This tool allows us to simply set up a network boot environment that then allows us to allocate services to it, for example, OpenStack services, such as Compute or Dashboard. Getting ready We need to identify a server on the network that will be running the MAAS services, such as PXE Boot and TFTP Daemon services. Log in to this server to install the MAAS services. This server will need Internet access to pull in the required Ubuntu packages. How to do it... To install MAAS for the installation of Ubuntu on servers on our network, carry out the following steps: 1. Install the actual MAAS package, which itself will pull in dependent components. We do this as follows: sudo apt-get update sudo apt-get -y install maas 2. Once installed, create a super-user account, as follows: sudo maas createsuperuser An example of running the previous command is as follows: Username (Leave blank to use 'root'): admin E-mail address: root@mycloudnetwork.com Password: Password (again): Superuser created successfully. 3. When that's done, we need to configure DHCP as follows: sudo apt-get -y install maas-dhcp 4. During the installation, we will be asked to fill in details for our network. Assuming our network is 172.16.0.0/16 and that we will run and set up our hosts in the range 172.16.0.11 to 172.16.0.200, we define the range with: Set the network range for DHCP Clients: 172.16.0.11,172.16.0.200 www.it-ebooks.info

