Nicolas Massé 2 months ago
parent
commit
825c9b8509
  1. 6
      bootc/baremetal/root/etc/systemd/system/bootstrap-vm@.service
  2. 6
      bootc/baremetal/root/etc/systemd/system/migrate-vm@.service
  3. 4
      bootc/base/root/etc/flightctl/hooks.d/afterupdating/99_greenboot.yaml
  4. 2
      flightctl/fleets/baremetal/sites/paris-wagram/etc/default/bootstrap-vm-nextcloud.env
  5. 2
      flightctl/fleets/baremetal/sites/villeneuve-d-ascq/etc/default/bootstrap-vm-nextcloud.env

6
bootc/baremetal/root/etc/systemd/system/bootstrap-vm@.service

@ -10,13 +10,13 @@ ConditionPathExists=!/var/lib/libvirt/images/%i/root.qcow2
# Only start if the VM definition file is present
ConditionPathExists=/etc/default/bootstrap-vm-%i.env
# Remain started to avoid race conditions
Persistent=true
[Service]
Type=oneshot
ExecStart=/usr/local/bin/bootstrap-vm.sh %i
EnvironmentFile=/etc/default/bootstrap-vm-%i.env
# Remain started to avoid race conditions
RemainAfterExit=true
[Install]
WantedBy=multi-user.target

6
bootc/baremetal/root/etc/systemd/system/migrate-vm@.service

@ -10,13 +10,13 @@ ConditionPathExists=!/var/lib/libvirt/images/%i/root.qcow2
# Only start if the VM definition file is present
ConditionPathExists=/etc/default/migrate-vm-%i.env
# Remain started to avoid race conditions
Persistent=true
[Service]
Type=oneshot
ExecStart=/usr/local/bin/migrate-vm.sh %i
EnvironmentFile=/etc/default/migrate-vm-%i.env
# Remain started to avoid race conditions
RemainAfterExit=true
[Install]
WantedBy=multi-user.target

4
bootc/base/root/etc/flightctl/hooks.d/afterupdating/99_greenboot.yaml

@ -0,0 +1,4 @@
- if:
- path: /etc/greenboot/check/
op: [created, updated, removed]
run: systemctl restart greenboot-healthcheck.service

2
flightctl/fleets/baremetal/sites/paris-wagram/etc/default/bootstrap-vm-nextcloud.env

@ -4,5 +4,5 @@ DOMAIN_DISK_SIZE=100
DOMAIN_OS_VARIANT=rhel9.6
DOMAIN_MAC_ADDRESS=04:00:00:00:00:01
FLIGHTCTL_LABELS_OVERRIDE={ "type": "virtualmachine", "vm.name": "nextcloud" }
DOMAIN_DISK_SOURCE=edge-registry.itix.fr/demo-edge-retail/virtualmachine:latest
DOMAIN_DISK_SOURCE=edge-registry.itix.fr/demo-edge-retail/virtualmachine-qcow2:latest
REGISTRY_AUTH_FILE=/etc/ostree/auth.json

2
flightctl/fleets/baremetal/sites/villeneuve-d-ascq/etc/default/bootstrap-vm-nextcloud.env

@ -4,5 +4,5 @@ DOMAIN_DISK_SIZE=100
DOMAIN_OS_VARIANT=rhel9.6
DOMAIN_MAC_ADDRESS=04:00:00:00:00:01
FLIGHTCTL_LABELS_OVERRIDE={ "type": "virtualmachine", "vm.name": "nextcloud" }
DOMAIN_DISK_SOURCE=edge-registry.itix.fr/demo-edge-retail/virtualmachine:latest
DOMAIN_DISK_SOURCE=edge-registry.itix.fr/demo-edge-retail/virtualmachine-qcow2:latest
REGISTRY_AUTH_FILE=/etc/ostree/auth.json

Loading…
Cancel
Save