75 Commits

Author SHA1 Message Date
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
8058f117cb
Update auto networks
* So that all the networks now will have be either static, auto or dhcp
* network_auto will not work out of the box, it can only effectively
  work after commissioning of a machine
2020-12-27 13:37:52 +00:00
58cfe4b468
fix typo 2020-12-27 10:33:11 +00:00
c304c99817
Add function to recomission VMs 2020-12-27 10:32:11 +00:00
2567ff0cf3
Add option to update all networks 2020-12-27 10:12:42 +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
5fa6255160
Fix some typos, and qemu_connection temp fix 2020-12-26 21:20:00 +00:00
426a8dd56f
fix function call 2020-12-26 21:05:23 +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
cd550ec378
Add stuff from maas function when install_kvm=true
https://git.launchpad.net/maas/tree/src/metadataserver/vendor_data.py?h=2.8#n168
using install_kvm=true vi the deploy and having user_data didn't work
so using this method instead
2020-12-25 20:11:38 +00:00
96c129298f
Add ksmtuned, move group stuff to runcmd instead 2020-12-25 19:48:41 +00:00
0f9b5154d0
Update second machine details, and finalise runcmd 2020-12-25 18:43:13 +00:00
57a886fc6d
update user_data 2020-12-25 18:16:11 +00:00
d21758daab
Update config, and add deploying of hypervisor node 2020-12-25 17:51:21 +00:00
3422dafc34
Add virtinst, that's what has the virt-install command 2020-12-24 11:49:41 +00:00
a3d11cd11d
Update config for asrock02 machine 2020-12-24 11:19:56 +00:00
37e8b518f5
Add help function 2020-12-23 20:03:00 +00:00
3e053d7bcd
Fix typo from the bridges array 2020-12-23 19:32:35 +00:00
cff4d52a83
Add storage_path default based on original config 2020-12-23 17:08:56 +00:00
35176c00af
fix array assignment 2020-12-23 16:59:40 +00:00
67c77ca8ab
Add network_type for hypervisors in use 2020-12-23 16:47:41 +00:00
f467c70ed9
add the feature to have either network or bridge for virt-install 2020-12-23 16:45:35 +00:00
b12f28aeca
Fix more tab to spaces, Add comments 2020-12-23 16:37:26 +00:00
02d222c3a8
Change all tabs to spaces 2020-12-23 16:00:28 +00:00
9700bfa74e
More fine tunning and comments
* Add the 4th HEX for the MAC address too
* Add comments in the destroy VM function
* Fix spacing, so that it's consistent in the destroy VM function
2020-12-23 15:58:03 +00:00
fb3a6d76da
More updates
* Make the variables consistent across all the functions
* build_fanout instead of build_timeout
* Release machine in maas, if we're wiping the disk for re-using
* Move the for loop to check for machine being ready into a function,
  so that it's re-usable
* Update some formatting fixes to README.md
2020-12-23 14:54:27 +00:00
d19bf0a93e
seperate out configs
* move out the maas.config to rpi4, just incase I move things around
* add asrock02 pending maachine to arrive soon
* add os-variant
2020-12-22 19:56:31 +00:00
297bc33aab
move the disk definition to the hypervisor config 2020-12-22 18:28:16 +00:00
36065d8dd1
fix curlies for array 2020-12-22 18:25:06 +00:00
fe90e59161
Put the disks in arrays, to be more dynamic 2020-12-22 18:14:42 +00:00
68cb074d33
Use the maas_profile variable 2020-12-22 14:16:57 +00:00
70a79c99aa
more fixes
* Use the maas snap for the maas-cli stuff, as there is no recent maas-cli deb
* update the way to tag a node, which now works
* put back the double ampersand for creating the VM
2020-12-22 13:58:30 +00:00
373ee0ff1c
More updates
* Add hypervisor config file to standardise script
* Add macs and bridges as an array
2020-12-22 12:50:53 +00:00
3c35b5de22
Get maas tags to work, fix tabs for virt-install 2020-12-22 10:14:50 +00:00
7a65a06f35
Update maas-nodes script for my environment
* The script now adds N control nodes at the beginning
* Adds 4 extra interfaces, VLANs in my environment
* Adds the VMs to MAAS, commissions them, and updates the interfaces.
* Add a function that just wipes the VM disks, for re-purposing.
  This allows to release the machines in MAAS, and then re-use them
  without having to re-add/commission the machines.
2020-12-22 08:33:12 +00:00
desrod
7d20bd1f1b Second pass at renaming in the maas.config.example config 2020-05-16 21:00:47 -04:00
desrod
6eb4d11134 Some variable renaming, cleanup 2020-05-16 20:59:56 -04:00
desrod
c2bfdae3ba Fixing a small quoting error 2020-05-12 10:10:17 -04:00
David A. Desrosiers
21cdc37610 Changed snap-store-proxy as the upstream purpose of that variable has changed in scope (https://juju.is/docs/offline-mode-strategies#heading--snap-specific-proxy) 2020-05-11 14:02:38 -04:00
David A. Desrosiers
1d8254c8bf Moving one more unnecessary var to the maas.config 2020-05-11 13:41:33 -04:00
David A. Desrosiers
f7fabfd9f5 Removing hard-coded values from main run 2020-05-11 13:38:57 -04:00
David A. Desrosiers
158a1c33fe More cleanup, extra spaces, moved packages from required_bins into core_packages, renamed package_repository 2020-05-11 13:36:57 -04:00
desrod
6b2cd78a61 Some additional error checking for maas.config and maas.debconf 2020-05-11 13:21:06 -04:00
desrod
745266630c Adding example debconf for maas autobuilder 2020-05-11 13:18:58 -04:00
desrod
dff4a06f5d Cleaning out some of the vars now included in the separate config, added a new core_packages to hold dependencies (thanks Chris!) 2020-05-11 13:16:40 -04:00
desrod
0d74e6a37a Updated to use a configuration file, key=value pairs, minor cleanup 2020-05-07 11:50:58 -04:00