164 Commits

Author SHA1 Message Date
arif 5739192d1f Fix tagging issue
The error message from maas has changed in the newer version, this
ensures it validates with the old and new messages
2025-06-13 17:36:34 +01:00
arif 74556327e5 Latest updates from live config
* Update the dns script to create dns configs in MAAS
* Update the juju bootstrap command for the newer version of juju
* Add config to be able to add a high mem VM for sunbeam testing
* Update the interface config, so that it uses hypervisor_mac by default
2025-06-12 16:41:08 +01:00
arif 6fdcc32eb0 Add osinfo attribute to virt-install 2024-09-25 08:55:48 +01:00
arif 91e774940a Update asrock03, maas config for new API, and now use jammy, updaate sysctl configs 2024-09-24 20:14:05 +01:00
arif 8d3643026b Add arif-ali ssh key to the virsh user 2023-03-06 11:31:59 +00:00
arif ac7d9ca361 add asrock04 and fine tune user-data 2023-03-05 11:04:48 +00:00
arif 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
arif 577be01157 Updates with some fine tuning
* Add openvswitch support
* Fine tuning of jq commands
2022-10-30 19:17:51 +00:00
arif 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
arif f11be6be55 fix ceph_storage for building VMs and update hp01 definition 2022-01-10 10:32:39 +00:00
arif 8baf74df56 Reserve some IPs, that are always going to be used 2021-12-25 18:49:23 +00:00
arif 81cedc58f7 More granular storage configuration
Use storage or ceph_storage paths depending on the
disks defined in the config
2021-12-25 18:48:55 +00:00
arif 6549ec4ee4 Add domain, if it doesn't exist 2021-12-25 18:47:41 +00:00
arif 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
arif 3d718f3074 fix virt-install command param for memory 2021-12-20 00:22:13 +00:00
arif 5a80b36dce Tuning of partition creation
Also updating MAAS API key from new bootstrapped MAAS
2021-12-20 00:06:24 +00:00
arif 52daf21f48 Allow ram to ballon 1.5 times allocated 2021-12-19 16:31:36 +00:00
arif 2f59149510 Update repos to reflect mimicked customer env 2021-12-19 16:31:12 +00:00
arif be2415eeb4 Add Kernel Options that are in MAAS 2021-12-06 07:58:36 +00:00
arif 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
arif 2a1925805a purge the snap when removing 2021-04-22 17:54:49 +01:00
arif ebe0b2ae92 Allow libvirt to auto generate the MAC
This way, we do have to do the calculation, and
allow the libvirtd to do this for us, and grab
the details directly off from libvirtd instead
2021-03-25 08:34:33 +00:00
arif d46adb4328 Change name of script 2021-03-25 08:28:06 +00:00
arif becc0f2848 A dot is required for cname at the end 2021-03-19 17:47:42 +00:00
arif 431295ee1d Update the controllers with 16GB RAM 2021-03-19 16:36:42 +00:00
arif 56785e2df4 Add link-local for physical interfaces for the hypervisors 2021-03-19 08:58:30 +00:00
arif 24a129ab11 The device number changed after NVME was added 2021-03-19 08:57:14 +00:00
arif 809256cfd6 Update node_count, and work towards new disk config 2021-03-18 08:32:54 +00:00
arif f639776164 use maas_ip_range 2021-03-16 11:55:20 +00:00
arif 4c4a9d97c0 Add facility to add DNS records 2021-03-16 11:52:46 +00:00
arif e517461cd3 Update control to 2, and 10G RAM 2021-03-12 16:53:01 +00:00
arif 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
arif 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
arif 4e273e6efa Update README 2021-03-01 17:14:45 +00:00
arif 7735f53f36 Only do certain actions if they are not deployed 2021-02-15 20:53:03 +00:00
arif 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
arif 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
arif 7ebd95796c Ensure to grab the network that is /24, hence ipv4
Fix this better, for a better check, but this works for the time being
2021-02-08 21:21:47 +00:00
arif 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
arif 748c97aa7d Update README.md 2021-02-01 11:54:48 +00:00
arif 6c2deaf61f Add add-repo back in, and fix boot-source import 2021-01-31 18:46:32 +00:00
arif 5f1af99797 Add apt repo, and not specify postgres version 2021-01-31 17:21:39 +00:00
arif 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
arif 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
arif e6d0cdd2f2 Go back to using IPs, DNS sucks 2021-01-20 22:13:46 +00:00
arif 3a17c1f159 Update/add functions
* Standardise 2 functions, as they did similar things, but a very slight change
* Added setting the zone of a machine
2021-01-17 20:12:17 +00:00
arif 9cf89e478f Also remove nvram 2021-01-17 19:17:47 +00:00
arif 5d837ae9ff A few updates
* Give capability to tag or not
* fix -d option
* Update hp01 config
2021-01-17 19:06:56 +00:00
arif 7e36aa1432 Add wakeonlan support for my hypervisors 2021-01-08 10:09:34 +00:00
arif 25e5553332 Add asrock03 mac, and update control_cpu to 4 2021-01-07 17:12:28 +00:00