qusal/salt/sys-net/prefs-disp.sls

21 lines
543 B
Plaintext
Raw Normal View History

2023-11-13 09:33:28 -05:00
{#
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') -%}
"{{ slsdotpath }}-set-{{ default_netvm }}-netvm-to-disp-{{ slsdotpath }}":
2023-11-13 09:33:28 -05:00
qvm.vm:
- require:
- qvm: disp-{{ slsdotpath }}
- name: {{ default_netvm }}
- prefs:
- netvm: disp-{{ slsdotpath }}
{% from 'utils/macros/policy.sls' import policy_set with context -%}
{{ policy_set(sls_path, '80') }}