Bladeren bron

Compile salt grains from grains.d directory

tags/0.4
Ales Komarek 9 jaren geleden
bovenliggende
commit
a376423daf
2 gewijzigde bestanden met toevoegingen van 8 en 3 verwijderingen
  1. +1
    -2
      salt/master/minion.sls
  2. +7
    -1
      salt/minion.sls

+ 1
- 2
salt/master/minion.sls Bestand weergeven

@@ -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 Bestand weergeven

@@ -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…
Annuleren
Opslaan