Move torsocks to separate state
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
8b42ef5723
commit
500cc24176
@ -21,22 +21,6 @@ deploy_tor_torrc:
|
||||
- watch_in:
|
||||
- service: install_tor
|
||||
|
||||
deploy_tor_torsocks:
|
||||
file.managed:
|
||||
- name: {{ map.config_torsocks }}
|
||||
- source: salt://{{ slspath }}/files/ini.jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 644
|
||||
- template: jinja
|
||||
- defaults:
|
||||
config: {{ map.torsocks }}
|
||||
- require:
|
||||
- pkg: install_tor
|
||||
- watch_in:
|
||||
- service: install_tor
|
||||
|
||||
|
||||
{% if salt['pillar.get']('tor:ed25519_signing_cert', False) %}
|
||||
|
||||
deploy_tor_signing_cert:
|
||||
|
19
tor/torsocks.sls
Normal file
19
tor/torsocks.sls
Normal file
@ -0,0 +1,19 @@
|
||||
{% from "tor/map.jinja" import map with context %}
|
||||
|
||||
deploy_tor_torsocks:
|
||||
file.managed:
|
||||
- name: {{ map.config_torsocks }}
|
||||
- source: salt://{{ slspath }}/files/ini.jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 644
|
||||
- template: jinja
|
||||
- defaults:
|
||||
config: {{ map.torsocks }}
|
||||
- require:
|
||||
- pkg: install_tor
|
||||
- watch_in:
|
||||
- service: install_tor
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user