Browse Source

Get rid of error when setting custom grains for the first time

tags/0.4
Ales Komarek 8 years ago
parent
commit
28975d963e
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      salt/minion.sls

+ 9
- 1
salt/minion.sls View File

- makedirs: true - makedirs: true
- user: root - user: root


salt_minion_grains_placeholder:
file.touch:
- name: /etc/salt/grains.d/placeholder
- user: root
- group: root
- require:
- file: salt_minion_grains_dir

salt_minion_grains_file: salt_minion_grains_file:
cmd.run: cmd.run:
- name: cat /etc/salt/grains.d/* > /etc/salt/grains - name: cat /etc/salt/grains.d/* > /etc/salt/grains
- require: - require:
- file: salt_minion_grains_dir
- file: salt_minion_grains_placeholder


/etc/salt/minion.d/minion.conf: /etc/salt/minion.d/minion.conf:
file.managed: file.managed:

Loading…
Cancel
Save