2023-02-05 18:25:17 +01:00
|
|
|
{% from "tor/map.jinja" import map, osfamily with context %}
|
2019-03-27 14:50:46 +01:00
|
|
|
|
2023-02-05 18:15:56 +01:00
|
|
|
{%- if osfamily == 'Debian' %}
|
2019-03-27 14:50:46 +01:00
|
|
|
include:
|
|
|
|
- tor.repo
|
2023-02-05 18:15:56 +01:00
|
|
|
{%- endif %}
|
2019-03-27 14:50:46 +01:00
|
|
|
|
|
|
|
install_tor:
|
|
|
|
pkg.installed:
|
|
|
|
- pkgs: {{ map.pkgs }}
|
2023-02-05 18:15:56 +01:00
|
|
|
{%- if osfamily == 'Debian' %}
|
2019-03-27 14:50:46 +01:00
|
|
|
- require:
|
|
|
|
- pkgrepo: install_tor_repo
|
2023-02-05 18:15:56 +01:00
|
|
|
{%- endif %}
|
2019-03-27 14:50:46 +01:00
|
|
|
service.running:
|
|
|
|
- name: {{ map.service }}
|
|
|
|
- restart: True
|
|
|
|
- enable: True
|
|
|
|
- require:
|
|
|
|
- pkg: install_tor
|