qusal/salt/debian-minimal/create.sls

71 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-11-13 09:33:28 -05:00
{#
2024-01-29 10:49:54 -05: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
#}
{%- from "qvm/template.jinja" import load -%}
{%- import slsdotpath ~ "/template.jinja" as template -%}
include:
- .clone
"dvm-{{ template.template }}-absent":
qvm.absent:
- names:
- {{ template.template_clean }}-dvm
- {{ template.template }}-dvm
{% load_yaml as defaults -%}
name: {{ template.template }}
2023-11-13 09:33:28 -05:00
force: True
require:
- sls: {{ template.template_clean }}.clone
present:
- label: black
2023-11-13 09:33:28 -05:00
prefs:
- label: black
- audiovm: ""
2023-11-13 09:33:28 -05:00
- memory: 300
- maxmem: 600
2023-11-13 09:33:28 -05:00
- vcpus: 1
- include_in_backups: False
features:
- set:
- menu-items: "qubes-open-file-manager.desktop qubes-run-terminal.desktop qubes-start.desktop"
- default-menu-items: "qubes-open-file-manager.desktop qubes-run-terminal.desktop qubes-start.desktop"
2023-11-13 09:33:28 -05:00
{%- endload %}
{{ load(defaults) }}
{% load_yaml as defaults -%}
name: dvm-{{ template.template_clean }}
2023-11-13 09:33:28 -05:00
force: True
require:
- sls: {{ template.template_clean }}.clone
present:
- template: {{ template.template }}
- label: red
2023-11-13 09:33:28 -05:00
prefs:
- template: {{ template.template }}
- label: red
- audiovm: ""
2023-11-13 09:33:28 -05:00
- memory: 300
- maxmem: 400
2023-11-13 09:33:28 -05:00
- vcpus: 1
- template_for_dispvms: True
2023-11-13 09:33:28 -05:00
- include_in_backups: False
features:
- enable:
- appmenus-dispvm
2023-11-13 09:33:28 -05:00
- set:
- menu-items: "qubes-open-file-manager.desktop qubes-run-terminal.desktop qubes-start.desktop"
{%- endload %}
{{ load(defaults) }}
"{{ slsdotpath }}-set-default_template":
cmd.run:
- name: qubes-prefs default_template {{ template.template }}
- require:
- sls: {{ template.template_clean }}.clone