forked from QubesOS/qubes-mgmt-salt-dom0-virtual-machines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-whonix-ws.sls
41 lines (36 loc) · 998 Bytes
/
template-whonix-ws.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- coding: utf-8 -*-
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
##
# qvm.template-whonix-ws
# ======================
#
# Installs 'whonix-ws' template.
#
# Execute:
# qubesctl state.sls qvm.template-whonix-ws dom0
##
template-whonix-ws-{{ defaults.whonix_version }}:
pkg.installed:
- name: qubes-template-whonix-ws-{{ defaults.whonix_version }}
- fromrepo: qubes-templates-community
whonix-ws-tag:
qvm.vm:
- name: whonix-ws-{{ defaults.whonix_version }}
- tags:
- present:
- whonix-updatevm
- features:
- enable:
- whonix-ws-{{ defaults.whonix_version }}
whonix-ws-update-policy:
file.prepend:
- name: /etc/qubes-rpc/policy/qubes.UpdatesProxy
- text:
- $tag:whonix-updatevm $default allow,target=sys-whonix
- $tag:whonix-updatevm $anyvm deny
# this is for whonix-ws based VMs
whonix-get-date-policy:
file.prepend:
- name: /etc/qubes-rpc/policy/qubes.GetDate
- text:
- $tag:anon-vm $anyvm deny