Skip to content

Commit

Permalink
Remove obsolete dvm cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop authored and legoktm committed Apr 2, 2024
1 parent 36083bc commit f5cf6da
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions dom0/sd-sys-vms.sls
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,12 @@ sd-{{ sys_vm }}-fedora-version-update:
- qvm: create-{{ sd_supported_fedora_template }}
{% endif %}

# We're numbering our VMs now even though its contents wouldn't change, to work
# around Salt's limitations, so the non-numbered VM should be removed.
{% if sys_vm == "sys-usb" %}
remove-sd-fedora-dvm:
qvm.absent:
- name: sd-fedora-dvm
- require:
- qvm: sd-sys-usb-fedora-version-update

# Finally, remove the old supported fedora DVM we created. We won't uninstall
# the template, in case it's being used elsewhere, but the `sd-` VMs we can
# reasonably manage (remove) ourselves.
# TODO: does this need to be updated to refer to sd-fedora-<previous>-dvm? or was it
# a one-time thing?
{% if sys_vm == "sys-usb" %}
remove-sd-fedora-37-dvm:
qvm.absent:
- name: sd-fedora-37-dvm
Expand Down

0 comments on commit f5cf6da

Please sign in to comment.