Pārlūkot izejas kodu

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

tags/0.4
Ales Komarek pirms 8 gadiem
vecāks
revīzija
28975d963e
1 mainītis faili ar 9 papildinājumiem un 1 dzēšanām
  1. +9
    -1
      salt/minion.sls

+ 9
- 1
salt/minion.sls Parādīt failu

@@ -12,11 +12,19 @@ salt_minion_grains_dir:
- makedirs: true
- 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:
cmd.run:
- name: cat /etc/salt/grains.d/* > /etc/salt/grains
- require:
- file: salt_minion_grains_dir
- file: salt_minion_grains_placeholder

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

Notiek ielāde…
Atcelt
Saglabāt