New version of salt-formula from Saltstack
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- {%- from "salt/map.jinja" import minion with context %}
- {%- if minion.enabled %}
-
- include:
- - salt.minion.service
-
- salt_minion_grains_dir:
- file.directory:
- - name: /etc/salt/grains.d
- - mode: 700
- - makedirs: true
- - user: root
- - require:
- - pkg: salt_minion_packages
-
- salt_minion_grains_placeholder:
- file.touch:
- - name: /etc/salt/grains.d/placeholder
- - require:
- - file: salt_minion_grains_dir
-
- salt_minion_grains_file:
- cmd.run:
- - name: cat /etc/salt/grains.d/* > /etc/salt/grains
- - require:
- - file: salt_minion_grains_dir
- - watch_in:
- - service: salt_minion_service
-
- {%- endif %}
|