diff --git a/states/salt_minion/init.sls b/states/salt_minion/init.sls index 30a8dca..383c46b 100644 --- a/states/salt_minion/init.sls +++ b/states/salt_minion/init.sls @@ -1,4 +1,5 @@ --- include: + - .install - .config - .service diff --git a/states/salt_minion/install.sls b/states/salt_minion/install.sls new file mode 100644 index 0000000..3326b6a --- /dev/null +++ b/states/salt_minion/install.sls @@ -0,0 +1,5 @@ +--- +{%- from "salt_minion/map.jinja" import salt_minion with context %} +salt-minion-install: + pip.installed: + - name: salt=={{ salt_minion.version }} diff --git a/states/salt_minion/service.sls b/states/salt_minion/service.sls index 798283f..b64520c 100644 --- a/states/salt_minion/service.sls +++ b/states/salt_minion/service.sls @@ -10,6 +10,5 @@ salt-minion-service-file: - mode: 644 salt-minion-service: - service.running: + service.enabled: - name: salt-minion - - enable: true