qusal/salt/sys-net/prefs-disp.sls
2023-11-13 14:33:28 +00:00

27 lines
662 B
Plaintext

{#
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
include:
- .create
{% set default_netvm = salt['cmd.shell']('qubes-prefs default_netvm') -%}
"default_netvm-netvm-disp-{{ slsdotpath }}":
qvm.vm:
- require:
- qvm: disp-{{ slsdotpath }}
- name: {{ default_netvm }}
- prefs:
- netvm: disp-{{ slsdotpath }}
"clockvm-disp-{{ slsdotpath }}":
cmd.run:
- require:
- qvm: disp-{{ slsdotpath }}
- name: qubes-prefs clockvm disp-{{ slsdotpath }}
{% from 'utils/macros/policy.sls' import policy_set with context -%}
{{ policy_set(sls_path, '80') }}