Quellcode durchsuchen

Compile salt grains from grains.d directory

tags/0.4
Ales Komarek vor 9 Jahren
Ursprung
Commit
a376423daf
2 geänderte Dateien mit 8 neuen und 3 gelöschten Zeilen
  1. +1
    -2
      salt/master/minion.sls
  2. +7
    -1
      salt/minion.sls

+ 1
- 2
salt/master/minion.sls Datei anzeigen

@@ -18,7 +18,6 @@ include:
file.symlink:
- target: /srv/salt/minion_keys
- require:
- file: /srv/salt/env/{{ name }}
- file: /srv/salt/minion_keys

{%- endfor %}
@@ -43,4 +42,4 @@ copy_generated_key_{{ minion.name }}:

{%- endif %}

{%- endif %}
{%- endif %}

+ 7
- 1
salt/minion.sls Datei anzeigen

@@ -7,11 +7,17 @@ salt_minion_packages:

salt_minion_grains_dir:
file.directory:
- name: /var/lib/salt/grains
- name: /etc/salt/grains.d
- mode: 700
- makedirs: true
- user: root

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

/etc/salt/minion.d/minion.conf:
file.managed:
- source: salt://salt/files/minion.conf

Laden…
Abbrechen
Speichern