mirror of
https://github.com/unman/shaker.git
synced 2025-01-26 06:25:54 -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['os_family']|lower == 'debian' %}
|
||||||
|
{% if grains['nodename']|lower != 'host' %}
|
||||||
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*list') %}
|
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*list') %}
|
||||||
{{ repo }}_baseurl:
|
{{ repo }}_baseurl:
|
||||||
file.replace:
|
file.replace:
|
||||||
@ -21,6 +22,7 @@
|
|||||||
- repl: 'http://HTTPS/'
|
- repl: 'http://HTTPS/'
|
||||||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||||
- backup: False
|
- backup: False
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% elif grains['os_family']|lower == 'arch' %}
|
{% elif grains['os_family']|lower == 'arch' %}
|
||||||
pacman:
|
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…
x
Reference in New Issue
Block a user