Commit Graph

47 Commits

Author SHA1 Message Date
d2074bf788 Some updates to fix build
fix typo for bridge_type
fix network definitions for VMs
remove the second disk from definition for asrock01
2022-11-01 08:16:54 +00:00
577be01157 Updates with some fine tuning
* Add openvswitch support
* Fine tuning of jq commands
2022-10-30 19:17:51 +00:00
f3eeb6e2eb move the node_count definition
If there are mods in the configs, then the node_count would
not be initialised correctly. Moving to the read_configs
function fixes this
2022-01-10 10:33:38 +00:00
f11be6be55 fix ceph_storage for building VMs and update hp01 definition 2022-01-10 10:32:39 +00:00
400484e503 Further updates
* Add extra bootstrap flags, will need to parametrise these at some point
* ensure nodes are tagged when they are newly created
* assign the same ip suffix on the hypervisors for consistency
2021-12-20 02:37:48 +00:00
5a80b36dce Tuning of partition creation
Also updating MAAS API key from new bootstrapped MAAS
2021-12-20 00:06:24 +00:00
2f59149510 Update repos to reflect mimicked customer env 2021-12-19 16:31:12 +00:00
be2415eeb4 Add Kernel Options that are in MAAS 2021-12-06 07:58:36 +00:00
840d798c29 A few changes, see notes
* Add script to add dns records
* Tag nodes based on which hypervisor they are on
* Add extra DNS fields via MAAS
2021-12-06 07:57:11 +00:00
431295ee1d Update the controllers with 16GB RAM 2021-03-19 16:36:42 +00:00
809256cfd6 Update node_count, and work towards new disk config 2021-03-18 08:32:54 +00:00
4c4a9d97c0 Add facility to add DNS records 2021-03-16 11:52:46 +00:00
e517461cd3 Update control to 2, and 10G RAM 2021-03-12 16:53:01 +00:00
9504dfaa72 new formula for node_count
This enzures that, if the number of control nodes are increased, the compute
nodes are decreased.
2021-03-12 14:44:38 +00:00
84412a6000 Some minor updates
* Doc update, missed back-tick
* default to 150G for root disk (will help with contrail nodes)
* Only require 1 disk for control nodes
2021-03-12 12:10:15 +00:00
05dca8bcd4 Add partitioning to maas nodes
* Add partitioning, so that it's consistent with how
  customer is doing it, so that replication of env is
  a lot easier
* Start some work towards DNS names for VIPs and such
2021-02-15 18:48:13 +00:00
a0f548eefb This current setup caused too many problems.
Only enabling uefi for VMs that won't necessarily be deployed
for OpenStack
2021-02-10 17:55:29 +00:00
5029e9735a A few updates
* Enable juju ha
* target juju tagged nodes for juju controllers
* Only update interfaces if they don't exist on the hypervisors
2021-02-08 09:08:49 +00:00
a64f6956f7 Add tagging as extra option
* Fix commision option
* Update new maas-api-key
* Add the ability to do stuff with the juju controller VMs with do_nodes
2021-01-27 09:32:26 +00:00
53b2988fc2 Ensure that the juju controller has 2 cores
When having large models the load on the vms can go high.
Having them with 2 cores helps with the loads reducing
significantly.
2021-01-25 13:50:09 +00:00
e6d0cdd2f2 Go back to using IPs, DNS sucks 2021-01-20 22:13:46 +00:00
5d837ae9ff A few updates
* Give capability to tag or not
* fix -d option
* Update hp01 config
2021-01-17 19:06:56 +00:00
25e5553332 Add asrock03 mac, and update control_cpu to 4 2021-01-07 17:12:28 +00:00
034c192f46 Update server details for mirrors, change start end points for dhcp 2021-01-07 09:00:02 +00:00
010264eb44 Add local repo 2021-01-04 20:44:56 +00:00
1ec2594717 making sure that the secureboot is for TESTING only 2021-01-03 20:32:32 +00:00
d6f57017bd Add uefi and a test secureboot option 2021-01-03 12:15:12 +00:00
b5c731d57a Update default_config
My maths was a bit off for node_count
Start of soemthing to enable legacy or uefi based VMs
2021-01-02 11:44:16 +00:00
4a6485a14a Rework a few bits
* Move the commision_vm/node to functions.sh
* if machine already exists in maas, then re-use it
* move node variables above the node_num, to calculate correctly
2021-01-02 11:07:21 +00:00
efab2d3628 Updates on configs
* Add comments to the default.config file
* move the node_count to the default.config, this will allow to use
  customised value if needed
* If pod-console-logging tag is to be added, then add correctly,
  Otherwise, if we are adding fresh pods after tag creation, the pods
  will fail to add. This also allows for other cases to be fulfilled if
  required
2020-12-31 12:47:34 +00:00
2b57cff585 Add option for hypervisor and therefore re-jig read_config 2020-12-30 22:08:49 +00:00
f741007501 Update bootstrap-maas, auto calculate node_count
* Ensure that the boot-sources are done at the beginning to give it
  time to sync
* Automatically calculate the amount of VMs depending on memory
2020-12-30 09:36:48 +00:00
9d585beddc Update server IP, and default node count to 9
* Although the default is 9, 1 is 8GB and 1 extra for juju, which
  oversubscribes the memory to 44GB
2020-12-30 08:45:14 +00:00
f617c3eebb Reorder some IPs, update api key, and add start/end for dhcp 2020-12-30 07:59:12 +00:00
39817eca47 Use maas 2.9 now 2020-12-29 15:28:17 +00:00
9add788935 Update to latest api key 2020-12-29 15:27:05 +00:00
86b4fd9459 Updates on the boostrap-maas now for clouds. Use DHCP by default, as problems with AUTO
Failed to allocate the required AUTO IP addresses after 2 retries.
2020-12-29 14:08:41 +00:00
01793ffc49 Bootstrap MAAS fixes and update for SNAP 2020-12-29 12:47:27 +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
f16140eac0 Added juju VMs as part of maas-manage-nodes.sh
Some of this is a hack, and some of this needs re-working, but this is
the initial work for this so that this can be fine tuned for later
2020-12-28 17:08:10 +00:00
c95bff6d92 Update hp01 config, and cloud-init
* Make password and virsh user consistent on hp01
* Update the config to reflect the network config from hp01
* Add timezone and byobu config in cloud init
2020-12-28 13:46:23 +00:00
ee0b7bec42 Set all the VMs with tag pod-console-logging
This ensures that "console=tty1 console=ttyS0" is set on the
kernel command line for all the VMS
2020-12-28 10:49:37 +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
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
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