Skip to content

Commit

Permalink
feat: whonix setup independent from OEM
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ben-grande committed Jan 21, 2024
1 parent f536258 commit 0e99d51
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion salt/whonix/clone.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
23 changes: 22 additions & 1 deletion salt/whonix/create.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -19,6 +18,12 @@ require:
- sls: {{ slsdotpath }}.clone
prefs:
- audiovm: ""
tags:
- add:
- whonix-updatevm
features:
- enable:
- whonix-ws
{%- endload %}
{{ load(defaults) }}
Expand All @@ -29,6 +34,12 @@ require:
- sls: {{ slsdotpath }}.clone
prefs:
- audiovm: ""
tags:
- add:
- whonix-updatevm
features:
- enable:
- whonix-gw
{%- endload %}
{{ load(defaults) }}
Expand All @@ -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
Expand All @@ -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) }}
Expand All @@ -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
Expand All @@ -70,5 +88,8 @@ prefs:
- maxmem: 1500
- include_in_backups: False
- autostart: False
tags:
- add:
- anon-vm
{%- endload %}
{{ load(defaults) }}

0 comments on commit 0e99d51

Please sign in to comment.