paulbsd-salt/states/salt_minion/init.sls

25 lines
561 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
2021-04-07 12:49:49 +02:00
{%- from "salt_minion/map.jinja" import salt_minion with context %}
2020-07-10 00:58:55 +02:00
salt-minion-config:
file.managed:
- name: /etc/salt/minion
- source: salt://salt_minion/minion.j2
- template: jinja
- user: root
- group: root
2020-08-30 16:51:59 +02:00
- mode: 640
2020-07-10 00:58:55 +02:00
2021-04-07 12:49:49 +02:00
salt-minion-service-file:
2020-07-10 00:58:55 +02:00
file.managed:
- name: /etc/systemd/system/salt-minion.service
- source: salt://salt_minion/salt-minion.service.j2
- template: jinja
- user: root
- group: root
2020-08-30 16:51:59 +02:00
- mode: 644
2021-04-07 12:49:49 +02:00
salt-minion-service:
service.running:
- name: salt-minion
- enable: True