Step by Step Install of MAAS and JUJU
        Posted  
        
            by 
                John S
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by John S
        
        
        
        Published on 2013-10-15T01:57:18Z
        Indexed on 
            2013/10/19
            22:15 UTC
        
        
        Read the original article
        Hit count: 985
        
I am working on understanding the pieces that I am missing in being able to deploy Juju across the other MAAS nodes. I don't know If I have a step out of place, or missing a few.
The server owns the router which handles the DHCP and DNS. Any assistance is greatly appreciated. When I am at the end I will either get a 409 error, or arbitrary pick tools 1.16.0 error. It is worth mentioning that local, and aws works fine. Hopefully with all of these steps spelled out it will help someone else along the way too.
Steps
Setting Up MAAS and JUJU - 12.04 LTS Clean install SSH only from the package selection during install
sudo apt-get install software-properties-common     
sudo apt-get install python-software-properties     
sudo add-apt-repository ppa:maas-maintainers/stable      
sudo add-apt-repository ppa:juju/stable   
sudo apt-get update     
sudo apt-get dist-upgrade
sudo reboot     
sudo apt-get install maas maas-dns maas-dhcp    
sudo ufw disable    
sudo reboot
- edit /etc/dhcp/dhcpd.conf
authoritive
subnet 10.0.0.0 netmask 255.255.255.0 {
next-server 10.0.0.2;
filename "pxelinux.0";
}
sudo maas createsuperuser
sudo maas-import-pxe-files
Login to MAAS http://10.x.x.x/MAAS
- cluster controller configuration for eth0
 - manage dhcp and dns
 - IP 10.0.0.2
 - subnet 255.255.255.0
 - broadcast 10.0.0.0
 - routerip 10.0.0.1
 - ip low 10.0.0.5
 - ip high 10.0.0.180
 
Commissioning default and distro is set at 12.04
default domain is at local
sudo maas-cli login maas http://10.x.x.x/MAAS/api/1.0 api-key
ssh-keygen -t rsa -b 2048 - enter - no password  - cat id_rsa.pub and enter key into MAAS ssh 
sudo maas-cli maas nodes accept-all (interestingly enough I only get back [] when executing this )
PXE one machine, accept and commision, start and deploy.
sudo apt-get install juju-core juju-local
MAAS config:
maas:
    type: maas
    maas-server: '://10.x.x.x:80/MAAS'
    maas-oauth: 'MAAS_API_KEY'
    admin-secret: 'nothing'
    default-series: 'precise'
juju switch maas
sudo juju bootstrap --show-log
        © Ask Ubuntu or respective owner