From e48d110f055af162f647b221661c941ff6c49a78 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Wed, 7 Apr 2021 12:49:49 +0200 Subject: [PATCH] updated salt_minion state --- states/salt_minion/init.sls | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/states/salt_minion/init.sls b/states/salt_minion/init.sls index 0245e1a..6a977b2 100644 --- a/states/salt_minion/init.sls +++ b/states/salt_minion/init.sls @@ -1,5 +1,5 @@ --- -{%- from "salt_minion/map.jinja" import salt_minion with context -%} +{%- from "salt_minion/map.jinja" import salt_minion with context %} salt-minion-config: file.managed: - name: /etc/salt/minion @@ -9,7 +9,7 @@ salt-minion-config: - group: root - mode: 640 -salt-minion-service: +salt-minion-service-file: file.managed: - name: /etc/systemd/system/salt-minion.service - source: salt://salt_minion/salt-minion.service.j2 @@ -17,3 +17,8 @@ salt-minion-service: - user: root - group: root - mode: 644 + +salt-minion-service: + service.running: + - name: salt-minion + - enable: True