23 lines
524 B
Plaintext
23 lines
524 B
Plaintext
---
|
|
include:
|
|
- pkg
|
|
|
|
{%- if salt['pillar.get']('services:enable') != None -%}
|
|
{%- for service in salt['pillar.get']('services:enable') %}
|
|
service-{{ service }}:
|
|
service.running:
|
|
- name: {{ service }}
|
|
- enable: true
|
|
- 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 }}
|
|
- enable: false
|
|
{%- endfor %}
|
|
{%- endif %} |