Skip to content

Commit

Permalink
feat: move clockvm out of sys-net to sys-firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-grande committed Dec 21, 2023
1 parent f161fbf commit a663616
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
3 changes: 3 additions & 0 deletions salt/sys-firewall/create.sls
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ features:
- enable:
- servicevm
- service.qubes-firewall
- service.clocksync
- disable:
- service.cups
- service.cups-browsed
Expand All @@ -64,6 +65,7 @@ prefs:
features:
- enable:
- servicevm
- service.clocksync
- disable:
- appmenus-dispvm
- service.cups
Expand Down Expand Up @@ -94,6 +96,7 @@ features:
- enable:
- servicevm
- service.qubes-firewall
- service.clocksync
- disable:
- service.cups
- service.cups-browsed
Expand Down
1 change: 1 addition & 0 deletions salt/sys-firewall/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ include:
- qubes-core-agent-networking
- ca-certificates
- iproute2
- systemd-timesyncd

{% endif -%}
10 changes: 8 additions & 2 deletions salt/sys-firewall/prefs-disp.sls
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ SPDX-License-Identifier: AGPL-3.0-or-later
include:
- .create

"{{ slsdotpath }}-qubes-prefs-updatevm":
"disp-{{ slsdotpath }}-qubes-prefs-updatevm":
cmd.run:
- require:
- sls: {{ slsdotpath }}.clone
- name: qubes-prefs updatevm disp-{{ slsdotpath }}

"{{ slsdotpath }}-qubes-prefs-default_netvm":
"disp-{{ slsdotpath }}-qubes-prefs-default_netvm":
cmd.run:
- require:
- sls: {{ slsdotpath }}.clone
- name: qubes-prefs default_netvm disp-{{ slsdotpath }}

"disp-{{ slsdotpath }}-qubes-prefs-clockvm":
cmd.run:
- require:
- sls: {{ slsdotpath }}.create
- name: qubes-prefs clockvm disp-{{ slsdotpath }}
6 changes: 6 additions & 0 deletions salt/sys-firewall/prefs.sls
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ include:
- require:
- sls: {{ slsdotpath }}.create
- name: qubes-prefs default_netvm {{ slsdotpath }}

"{{ slsdotpath }}-qubes-prefs-clockvm":
cmd.run:
- require:
- sls: {{ slsdotpath }}.create
- name: qubes-prefs clockvm {{ slsdotpath }}
3 changes: 0 additions & 3 deletions salt/sys-net/create.sls
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ features:
- enable:
- servicevm
- service.qubes-updates-proxy
- service.clocksync
- disable:
- service.cups
- service.cups-browsed
Expand Down Expand Up @@ -66,7 +65,6 @@ features:
- enable:
- servicevm
- service.qubes-updates-proxy
- service.clocksync
- disable:
- appmenus-dispvm
- service.cups
Expand Down Expand Up @@ -97,7 +95,6 @@ features:
- enable:
- servicevm
- service.qubes-updates-proxy
- service.clocksync
- disable:
- appmenus-dispvm
- service.cups
Expand Down
1 change: 0 additions & 1 deletion salt/sys-net/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ include:
- wpasupplicant
- gnome-keyring
- notification-daemon
- systemd-timesyncd

{% endif -%}
8 changes: 1 addition & 7 deletions salt/sys-net/prefs-disp.sls
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,13 @@ include:
- .create

{% set default_netvm = salt['cmd.shell']('qubes-prefs default_netvm') -%}
"default_netvm-netvm-disp-{{ slsdotpath }}":
"{{ slsdotpath }}-set-{{ default_netvm }}-netvm-to-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') }}
8 changes: 1 addition & 7 deletions salt/sys-net/prefs.sls
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,13 @@ include:
- .create

{% set default_netvm = salt['cmd.shell']('qubes-prefs default_netvm') -%}
"default_netvm-netvm-{{ slsdotpath }}":
"{{ slsdotpath }}-set-{{ default_netvm }}-netvm-to-{{ slsdotpath }}":
qvm.vm:
- require:
- qvm: {{ slsdotpath }}
- name: {{ default_netvm }}
- prefs:
- netvm: {{ slsdotpath }}

"clockvm-{{ slsdotpath }}":
cmd.run:
- require:
- qvm: {{ slsdotpath }}
- name: qubes-prefs clockvm {{ slsdotpath }}

{% from 'utils/macros/policy.sls' import policy_set with context -%}
{{ policy_set(sls_path, '80') }}

0 comments on commit a663616

Please sign in to comment.