tor-formula/tor/install.sls

21 lines
415 B
Plaintext
Raw Normal View History

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