From 80aeb3644f8ebe6a4d091809be684c1fc7935a32 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Wed, 20 Dec 2023 21:24:43 +0100 Subject: [PATCH] fix: sync reader appmenus --- salt/reader/README.md | 2 ++ salt/reader/appmenus.sls | 8 ++++++++ salt/reader/appmenus.top | 10 ++++++++++ 3 files changed, 20 insertions(+) create mode 100644 salt/reader/appmenus.sls create mode 100644 salt/reader/appmenus.top diff --git a/salt/reader/README.md b/salt/reader/README.md index 7dd96b1..44f0599 100644 --- a/salt/reader/README.md +++ b/salt/reader/README.md @@ -23,6 +23,7 @@ necessary packages will be installed in the template. qubesctl top.enable reader qubesctl --targets=tpl-reader state.apply qubesctl top.disable reader +qubesctl state.apply reader.appmenus ``` - State: @@ -30,6 +31,7 @@ qubesctl top.disable reader ```sh qubesctl state.apply reader.create qubesctl --skip-dom0 --targets=tpl-reader state.apply reader.install +qubesctl state.apply reader.appmenus ``` diff --git a/salt/reader/appmenus.sls b/salt/reader/appmenus.sls new file mode 100644 index 0000000..a84a247 --- /dev/null +++ b/salt/reader/appmenus.sls @@ -0,0 +1,8 @@ +{# +SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. + +SPDX-License-Identifier: AGPL-3.0-or-later +#} + +{% from 'utils/macros/sync-appmenus.sls' import sync_appmenus -%} +{{ sync_appmenus('tpl-' ~ sls_path) }} diff --git a/salt/reader/appmenus.top b/salt/reader/appmenus.top new file mode 100644 index 0000000..85a90f2 --- /dev/null +++ b/salt/reader/appmenus.top @@ -0,0 +1,10 @@ +{# +SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. + +SPDX-License-Identifier: AGPL-3.0-or-later +#} + +base: + 'dom0': + - match: nodegroup + - reader.appmenus