Issue link: https://read.uberflip.com/i/1334488
Chapter 11 219 Installing and configuring Juju Ubuntu provides a tool named Juju that allows us to not only install packages, but to also install and configure the services by way of charms. Charms are a collection of scripts and descriptions on how to install and configure that service. For example, a charm for, say Wordpress, will install the Wordpress PHP files, as well as allow us to attach the Wordpress installation to a MySQL backend, or attach to a load balancer through relationships with those other services. Getting ready Log in to a shell on the MAAS server. How to do it... Carry out the following steps to install and configure Juju on our MAAS host: 1. First, we need to install the Juju tools. We do this as follows: sudo apt-get update sudo apt-get -y install juju 2. Once installed, we need to get the MAAS API key for our admin user set up under MAAS. To do this, we navigate to the Preferences link in the MAAS web interface and copy the key (or alternatively generate a new one and take a copy of that). 3. We are now ready to configure our Juju environment. To do this, we create a file named ~/.juju/environments.yaml, as follows: environments: maas: type: maas maas-server: 'http://172.16.0.250:80/MAAS' maas-oauth: 'tcWxFpwbWqyeBFDd4P:HTCSqrsw7XQKBcvm8n: bp67u5TkSLu2wf2b7wUS2ckLjwELCZED' admin-secret: 'nothing' default-series: precise www.it-ebooks.info

