From 0e99d51d12ff91c02c5d319b4bf6c265ad15c16a Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Sun, 21 Jan 2024 23:04:41 +0100 Subject: [PATCH] feat: whonix setup independent from OEM Depending on OEM will conflict the state IDs because they are the name of the qubes being created. As not much changes are needed and we customize much more, stop depending on upstream. --- salt/whonix/clone.sls | 2 +- salt/whonix/create.sls | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/salt/whonix/clone.sls b/salt/whonix/clone.sls index f6e5eb2c..4de50626 100644 --- a/salt/whonix/clone.sls +++ b/salt/whonix/clone.sls @@ -13,5 +13,5 @@ SPDX-License-Identifier: AGPL-3.0-or-later "{{ whonix.whonix_workstation_template }}-installed": qvm.template_installed: - - name: whonix-workstation-{{ whonix.whonix_workstation_template }} + - name: {{ whonix.whonix_workstation_template }} - fromrepo: {{ whonix.whonix_repo }} diff --git a/salt/whonix/create.sls b/salt/whonix/create.sls index ffb8182b..1b8afa87 100644 --- a/salt/whonix/create.sls +++ b/salt/whonix/create.sls @@ -10,7 +10,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later include: - .clone - - qvm.anon-whonix {% load_yaml as defaults -%} name: {{ template.whonix_workstation_template }} @@ -19,6 +18,12 @@ require: - sls: {{ slsdotpath }}.clone prefs: - audiovm: "" +tags: +- add: + - whonix-updatevm +features: +- enable: + - whonix-ws {%- endload %} {{ load(defaults) }} @@ -29,6 +34,12 @@ require: - sls: {{ slsdotpath }}.clone prefs: - audiovm: "" +tags: +- add: + - whonix-updatevm +features: +- enable: + - whonix-gw {%- endload %} {{ load(defaults) }} @@ -37,6 +48,7 @@ name: sys-{{ slsdotpath }} force: True require: - sls: {{ slsdotpath }}.clone +- qvm: {{ template.whonix_gateway_template }} present: - template: {{ template.whonix_gateway_template }} - label: black @@ -47,8 +59,12 @@ prefs: - vcpus: 1 - memory: 300 - maxmem: 500 +- provides-network: True - include_in_backups: False - autostart: False +tags: +- add: + - anon-gateway {%- endload %} {{ load(defaults) }} @@ -57,6 +73,8 @@ name: anon-{{ slsdotpath }} force: True require: - sls: {{ slsdotpath }}.clone +- qvm: sys-{{ slsdotpath }} +- qvm: {{ template.whonix_workstation_template }} present: - template: {{ template.whonix_workstation_template }} - label: red @@ -70,5 +88,8 @@ prefs: - maxmem: 1500 - include_in_backups: False - autostart: False +tags: +- add: + - anon-vm {%- endload %} {{ load(defaults) }}