New cloud deploy

In this video we re-deploy the new ubuntu landscape install. Ubuntu 14.04 build downloaded 10/30/16. This is the new build with 12 GB more RAM total. 


Edit this file to lowed DHCP lease times.
sudo nano /etc/maas/templates/dhcp/dhcpd.conf.template

If you want to lower your lease time to 5 minutes add the entries in red below.

# WARNING: Do not edit /var/lib/maas/dhcpd.conf yourself.  MAAS will overwrite any
# changes made there.
#
# Instead, edit /etc/maas/templates/dhcp/dhcpd.conf.template and your changes
# will be present whenever MAAS rewrites the DHCP configuration.  Update and save
# the cluster's configuration in MAAS to trigger an update to this file.

option arch code 93 = unsigned integer 16; # RFC4578
option path-prefix code 210 = text; #RFC5071

{{bootloader}}
class "PXE" {
        match if substring (option vendor-class-identifier, 0, 3) = "PXE";
        default-lease-time 30;
        max-lease-time 30;
}

{{for dhcp_subnet in dhcp_subnets}}
subnet {{dhcp_subnet['subnet']}} netmask {{dhcp_subnet['subnet_mask']}} {
       interface "{{dhcp_subnet['interface']}}";
       ignore-client-uids true;
       option subnet-mask {{dhcp_subnet['subnet_mask']}};
       option broadcast-address {{dhcp_subnet['broadcast_ip']}};
       {{if dhcp_subnet.get('dns_servers')}}
       option domain-name-servers {{dhcp_subnet['dns_servers']}};
       {{endif}}
       option domain-name "{{dhcp_subnet['domain_name']}}";
       {{if dhcp_subnet['router_ip'] }}
       option routers {{dhcp_subnet['router_ip']}};
       {{endif}}
       {{if dhcp_subnet.get('ntp_server')}}
       option ntp-servers {{dhcp_subnet['ntp_server']}};
       {{endif}}
       range dynamic-bootp {{dhcp_subnet['ip_range_low']}} {{dhcp_subnet['ip_range_high']}};
       default-lease-time 300;
       max-lease-time 300;

}
{{endfor}}

omapi-port 7911;
key omapi_key {
    algorithm HMAC-MD5;
    secret "{{omapi_key}}";
};
omapi-key omapi_key;


Reboot after you make the change
sudo reboot now
Comments