diff --git a/bootstrap-maas.sh b/bootstrap-maas.sh index 43b1c64..826aec3 100755 --- a/bootstrap-maas.sh +++ b/bootstrap-maas.sh @@ -122,7 +122,7 @@ build_maas() { maas $maas_profile subnet update "$(maas $maas_profile subnets read | jq -rc --arg maas_ip "$maas_ip_range" '.[] | select(.name | contains($maas_ip)) | "\(.id)"')" gateway_ip="$maas_bridge_ip" sleep 3 - maas $maas_profile ipranges create type=dynamic start_ip=192.168.100.100 end_ip=192.168.100.200 comment='This is the reserved range for MAAS nodes' + maas $maas_profile ipranges create type=dynamic start_ip="$maas_subnet_start" end_ip="$maas_subnet_end" comment='This is the reserved range for MAAS nodes' sleep 3 maas $maas_profile vlan update fabric-1 0 dhcp_on=True primary_rack="$maas_system_id" diff --git a/maas.config.example b/maas.config.example index cf4f69e..4bfd99d 100644 --- a/maas.config.example +++ b/maas.config.example @@ -8,6 +8,8 @@ maas_local_proxy="http://$maas_bridge_ip:8000" maas_pass="openstack" maas_profile="admin" maas_system_ip="192.168.1.10" +maas_subnet_start="192.168.100.100" +maas_subnet_end="192.168.100.200" maas_upstream_dns="1.1.1.1 4.4.4.4 8.8.8.8" maas_user="maas" maas_version="2.4"