mirror of
https://github.com/unman/shaker.git
synced 2025-01-11 23:39:27 -05:00
Block Whonix templates from repository rewriting.
Assumes that whonix templates all have nodename 'host'.
This commit is contained in:
parent
0165e7610a
commit
9ea89964a4
@ -3,6 +3,7 @@
|
||||
#
|
||||
#
|
||||
{% if grains['os_family']|lower == 'debian' %}
|
||||
{% if grains['nodename']|lower != 'host' %}
|
||||
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*list') %}
|
||||
{{ repo }}_baseurl:
|
||||
file.replace:
|
||||
@ -21,6 +22,7 @@
|
||||
- repl: 'http://HTTPS/'
|
||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
- backup: False
|
||||
{% endif %}
|
||||
|
||||
{% elif grains['os_family']|lower == 'arch' %}
|
||||
pacman:
|
||||
|
4
cacher/change_templates.top
Normal file
4
cacher/change_templates.top
Normal file
@ -0,0 +1,4 @@
|
||||
base:
|
||||
I@qubes:type:template and not P@nodename:host and not P@nodename:whonix.*:
|
||||
- match: compound
|
||||
- cacher.change_templates
|
Loading…
Reference in New Issue
Block a user