2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
include:
|
|
|
|
- pkg
|
|
|
|
|
|
|
|
{%- if salt['pillar.get']('services:enable') != None -%}
|
|
|
|
{%- for service in salt['pillar.get']('services:enable') %}
|
|
|
|
service-{{ service }}:
|
|
|
|
service.running:
|
|
|
|
- name: {{ service }}
|
2020-09-12 17:41:35 +02:00
|
|
|
- enable: true
|
2020-07-10 00:58:55 +02:00
|
|
|
- require:
|
|
|
|
- pkg: pkg-install
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
{%- if salt['pillar.get']('services:disable') != None -%}
|
|
|
|
{%- for service in salt['pillar.get']('services:disable') %}
|
|
|
|
service-{{ service }}:
|
|
|
|
service.dead:
|
|
|
|
- name: {{ service }}
|
2020-09-12 17:41:35 +02:00
|
|
|
- enable: false
|
2020-07-10 00:58:55 +02:00
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|