Syndic service
diff --git a/salt/map.jinja b/salt/map.jinja
index fdb3a4a..b0f03da 100644
--- a/salt/map.jinja
+++ b/salt/map.jinja
@@ -49,9 +49,11 @@
{%- load_yaml as syndic_defaults %}
Debian:
+ service: salt-syndic
pkgs:
- salt-syndic
RedHat:
+ service: salt-syndic
pkgs:
- salt-syndic
{%- endload %}
diff --git a/salt/syndic.sls b/salt/syndic.sls
index 68b8f27..9858b3c 100644
--- a/salt/syndic.sls
+++ b/salt/syndic.sls
@@ -15,5 +15,11 @@
- template: jinja
- watch_in:
- service: salt_master_service
+ - service: salt_syndic_service
-{%- endif %}
+salt_syndic_service:
+ service.running:
+ - name: {{ syndic.service }}
+ - enable: true
+
+{%- endif %}
\ No newline at end of file