From b86486a793818e458aa8eaeb7a7a70c1720f9d7a Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Tue, 2 Jan 2024 18:04:54 +0100 Subject: [PATCH] feat: qubes-vm-update global settings --- salt/dom0/install.sls | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/salt/dom0/install.sls b/salt/dom0/install.sls index 60f03fc..0f4310d 100644 --- a/salt/dom0/install.sls +++ b/salt/dom0/install.sls @@ -4,8 +4,22 @@ SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. SPDX-License-Identifier: AGPL-3.0-or-later #} +{%- from "qvm/template.jinja" import load -%} + {% if grains['nodename'] == 'dom0' -%} +{% load_yaml as defaults -%} +name: {{ slsdotpath }} +force: True +features: +- set: + - qubes-vm-update-if-stale: 4 + - qubes-vm-update-max-concurrency: 4 + - qubes-vm-update-restart-system: 1 + - qubes-vm-update-restart-other: 0 +{%- endload %} +{{ load(defaults) }} + "{{ slsdotpath }}-updated": pkg.uptodate: - refresh: True