fix: sync reader appmenus

This commit is contained in:
Ben Grande 2023-12-20 21:24:43 +01:00
parent c2f25844da
commit 80aeb3644f
3 changed files with 20 additions and 0 deletions

View File

@ -23,6 +23,7 @@ necessary packages will be installed in the template.
qubesctl top.enable reader qubesctl top.enable reader
qubesctl --targets=tpl-reader state.apply qubesctl --targets=tpl-reader state.apply
qubesctl top.disable reader qubesctl top.disable reader
qubesctl state.apply reader.appmenus
``` ```
- State: - State:
@ -30,6 +31,7 @@ qubesctl top.disable reader
```sh ```sh
qubesctl state.apply reader.create qubesctl state.apply reader.create
qubesctl --skip-dom0 --targets=tpl-reader state.apply reader.install qubesctl --skip-dom0 --targets=tpl-reader state.apply reader.install
qubesctl state.apply reader.appmenus
``` ```
<!-- pkg:end:post-install --> <!-- pkg:end:post-install -->

8
salt/reader/appmenus.sls Normal file
View File

@ -0,0 +1,8 @@
{#
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% from 'utils/macros/sync-appmenus.sls' import sync_appmenus -%}
{{ sync_appmenus('tpl-' ~ sls_path) }}

10
salt/reader/appmenus.top Normal file
View File

@ -0,0 +1,10 @@
{#
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
base:
'dom0':
- match: nodegroup
- reader.appmenus