mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-23 22:49:27 -05:00
30 lines
784 B
Plaintext
30 lines
784 B
Plaintext
|
{#
|
||
|
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||
|
|
||
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
||
|
#}
|
||
|
|
||
|
{%- import slsdotpath ~ "/template.jinja" as template -%}
|
||
|
|
||
|
include:
|
||
|
- .create
|
||
|
|
||
|
"{{ slsdotpath }}-set-management_dispvm-to-default":
|
||
|
qvm.vm:
|
||
|
- require:
|
||
|
- cmd: "{{ slsdotpath }}-install-salt-deps"
|
||
|
- name: {{ template.template }}
|
||
|
- prefs:
|
||
|
- management_dispvm: "*default*"
|
||
|
|
||
|
## TODO: Remove when template with patch reaches upstream or updates enforce
|
||
|
## salt-deps to be installed.
|
||
|
## https://github.com/QubesOS/qubes-issues/issues/8806
|
||
|
"{{ slsdotpath }}-shutdown-template":
|
||
|
qvm.shutdown:
|
||
|
- require:
|
||
|
- qvm: "{{ slsdotpath }}-set-management_dispvm-to-default"
|
||
|
- name: {{ template.template }}
|
||
|
- flags:
|
||
|
- force
|