Skip to content

Commit

Permalink
fix: customize sys-whonix
Browse files Browse the repository at this point in the history
- autostart set to false;
- lower vcpus available;
- lower total memory; and
- use state provided by upstream;
  • Loading branch information
ben-grande committed Dec 31, 2023
1 parent 624be83 commit f6cb322
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions salt/whonix/create.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,29 @@ SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
SPDX-License-Identifier: AGPL-3.0-or-later
#}

{%- from "qvm/template.jinja" import load -%}
{%- import slsdotpath ~ "/template.jinja" as template -%}
include:
- whonix.clone
- .clone
- qvm.anon-whonix
- qvm.whonix-workstation-dvm
{% load_yaml as defaults -%}
name: sys-{{ slsdotpath }}
force: True
require:
- sls: {{ slsdotpath }}.clone
present:
- template: {{ template.whonix_gateway_template }}
- label: black
prefs:
- template: {{ template.whonix_gateway_template }}
- label: black
- memory: 300
- maxmem: 500
- vcpus: 1
- include_in_backups: False
- autostart: False
{%- endload %}
{{ load(defaults) }}

0 comments on commit f6cb322

Please sign in to comment.