updated salt_minion state
This commit is contained in:
parent
355fc27259
commit
a0db077281
10
states/salt_minion/config.sls
Normal file
10
states/salt_minion/config.sls
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
{%- from "salt_minion/map.jinja" import salt_minion with context %}
|
||||
salt-minion-config:
|
||||
file.managed:
|
||||
- name: /etc/salt/minion
|
||||
- source: salt://salt_minion/minion.j2
|
||||
- template: jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 640
|
@ -1,24 +1,4 @@
|
||||
---
|
||||
{%- from "salt_minion/map.jinja" import salt_minion with context %}
|
||||
salt-minion-config:
|
||||
file.managed:
|
||||
- name: /etc/salt/minion
|
||||
- source: salt://salt_minion/minion.j2
|
||||
- template: jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 640
|
||||
|
||||
salt-minion-service-file:
|
||||
file.managed:
|
||||
- name: /etc/systemd/system/salt-minion.service
|
||||
- source: salt://salt_minion/salt-minion.service.j2
|
||||
- template: jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 644
|
||||
|
||||
salt-minion-service:
|
||||
service.running:
|
||||
- name: salt-minion
|
||||
- enable: True
|
||||
include:
|
||||
- .config
|
||||
- .service
|
||||
|
15
states/salt_minion/service.sls
Normal file
15
states/salt_minion/service.sls
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
{%- from "salt_minion/map.jinja" import salt_minion with context %}
|
||||
salt-minion-service-file:
|
||||
file.managed:
|
||||
- name: /etc/systemd/system/salt-minion.service
|
||||
- source: salt://salt_minion/salt-minion.service.j2
|
||||
- template: jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 644
|
||||
|
||||
salt-minion-service:
|
||||
service.running:
|
||||
- name: salt-minion
|
||||
- enable: True
|
Loading…
Reference in New Issue
Block a user