mirror of
https://github.com/unman/shaker.git
synced 2025-08-03 03:26:14 -04:00
Block Whonix templates from repository rewriting.
Assumes that whonix templates all have nodename 'host'.
This commit is contained in:
parent
0165e7610a
commit
9ea89964a4
2 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue