2023-11-13 09:33:28 -05:00
|
|
|
{#
|
2024-03-23 17:09:49 -04:00
|
|
|
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
#}
|
|
|
|
|
2024-03-23 17:09:49 -04:00
|
|
|
include:
|
|
|
|
- .create
|
|
|
|
|
2024-06-10 13:39:08 -04:00
|
|
|
"{{ slsdotpath }}-set-qubes-prefs-management_dispvm-to-dvm-{{ slsdotpath }}":
|
|
|
|
cmd.run:
|
|
|
|
- require:
|
|
|
|
- cmd: "{{ slsdotpath }}-install-salt-deps"
|
|
|
|
- name: qubes-prefs management_dispvm dvm-{{ slsdotpath }}
|
|
|
|
|
|
|
|
"{{ slsdotpath }}-set-tpl-{{ slsdotpath }}-management_dispvm-to-default":
|
2024-03-23 17:09:49 -04:00
|
|
|
qvm.vm:
|
|
|
|
- require:
|
|
|
|
- cmd: "{{ slsdotpath }}-install-salt-deps"
|
|
|
|
- name: tpl-{{ slsdotpath }}
|
|
|
|
- prefs:
|
|
|
|
- management_dispvm: "*default*"
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
"{{ slsdotpath }}-remove-default-mgmt-dvm":
|
|
|
|
qvm.absent:
|
|
|
|
- require:
|
2024-06-10 13:39:08 -04:00
|
|
|
- cmd: "{{ slsdotpath }}-set-qubes-prefs-management_dispvm-to-dvm-{{ slsdotpath }}"
|
|
|
|
- qvm: "{{ slsdotpath }}-set-tpl-{{ slsdotpath }}-management_dispvm-to-default"
|
2024-03-23 17:09:49 -04:00
|
|
|
- name: default-mgmt-dvm
|
2024-03-10 12:22:39 -04:00
|
|
|
|
2024-03-23 17:09:49 -04:00
|
|
|
## TODO: Remove when template with patch reaches upstream or updates enforce
|
|
|
|
## salt-deps to be installed.
|
2024-03-10 12:22:39 -04:00
|
|
|
## https://github.com/QubesOS/qubes-issues/issues/8806
|
|
|
|
"{{ slsdotpath }}-shutdown-template":
|
|
|
|
qvm.shutdown:
|
2024-03-23 17:09:49 -04:00
|
|
|
- require:
|
2024-06-10 13:39:08 -04:00
|
|
|
- qvm: "{{ slsdotpath }}-set-tpl-{{ slsdotpath }}-management_dispvm-to-default"
|
2024-03-10 12:22:39 -04:00
|
|
|
- name: tpl-{{ slsdotpath }}
|
2024-03-23 17:09:49 -04:00
|
|
|
- flags:
|
|
|
|
- force
|