2023-02-06 21:35:15 +01:00
|
|
|
{%- from "tor/map.jinja" import map with context -%}
|
2023-02-05 18:25:17 +01:00
|
|
|
|
|
|
|
install_torsocks:
|
|
|
|
pkg.installed:
|
|
|
|
- name: torsocks
|
|
|
|
service.running:
|
|
|
|
- name: {{ map.service_torsocks }}
|
|
|
|
- restart: True
|
|
|
|
- enable: True
|
|
|
|
- require:
|
|
|
|
- pkg: install_torsocks
|
2023-02-05 18:24:50 +01:00
|
|
|
|
|
|
|
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:
|
2023-02-05 18:25:17 +01:00
|
|
|
- pkg: install_torsocks
|
2023-02-05 18:24:50 +01:00
|
|
|
- watch_in:
|
2023-02-05 18:25:17 +01:00
|
|
|
- service: install_torsocks
|