13 Commits

Author SHA1 Message Date
2b57cff585
Add option for hypervisor and therefore re-jig read_config 2020-12-30 22:08:49 +00:00
30ac86aa3f
Fix typo, add pod back, update maas_api_key 2020-12-29 11:20:17 +00:00
e00742c81d
boostrap maas work
* Install and Build working and tested for snap installation
* Added VLAN, spaces awareness in the subnets and added to the same fabric
2020-12-29 00:55:36 +00:00
b7c47ef0ee
Add pod for the hypervisor and other fixes
* Add pod creation, so that when we remove the hypervisor
  then all the VMs also get removed automatically
* virtinst is only used when creating/installing VMs, so
  only install on hypervisor nodes
* Only grab the top vlan if we have 2, this typically
  means that we have an ipv4 and ipv6 IP. Could probably
  do this better, but keep it simple for the time being
2020-12-28 10:17:07 +00:00
121ff6b456
fix cloud-init and fix options 2020-12-28 09:31:10 +00:00
daa717cfb7
Now also create the partitioning too
* Added flag to do networking from CLI too
2020-12-27 19:16:33 +00:00
174aeb558d
Move the linux_kvm stuff to a script 2020-12-27 17:40:02 +00:00
40694207a3
Update assign_networks function
* Update the function, such that when subnet_id is null, then based on
  the vlan, grab the details from the subnets defined, and update the
  links based on this. This ensures that all subnets are auto-assigned
  and the externel_vlan is dhcp from the upstream network
* Revert the network_auto function, as the above change would help with
  the issues we faced before
* Update all the maas function calls, and assign them to a variable or
  direct the output to /dev/null, as we don't want the screen to be
  filled with all the information
TODO: Have viable output to the CLI, so that you have some details of
what is going on
2020-12-27 17:25:21 +00:00
35d195c334
More updates
* Move stuff from common to default, as it didn't make sense
* use virsh_user instead, that was its more customisable
* Revert the change to manage-maas-nodes.sh now use extra function to
  call maas_auto_assign_networks instead
* More comments to the code
2020-12-27 10:06:21 +00:00
770ade65ba
Move maas_add_node to functions, and standardise 2020-12-26 20:41:41 +00:00
098be2f389
Many update
* Move all configs into config directory
* Move all examples into example directoy
* Move all common functions into functions.sh
* Fine tune a few other functions
* Moved common hypervisor config away
* Added examples for some of the hypervisor configs
* Start work on snap enablement of boostrap-maas.sh script
2020-12-26 20:03:28 +00:00
f9ba912164
Move the sshd_config stuff to a script 2020-12-26 09:50:10 +00:00
d21758daab
Update config, and add deploying of hypervisor node 2020-12-25 17:51:21 +00:00