浏览代码

Compile salt grains from grains.d directory

tags/0.4
Ales Komarek 9 年前
父节点
当前提交
a376423daf
共有 2 个文件被更改,包括 8 次插入3 次删除
  1. +1
    -2
      salt/master/minion.sls
  2. +7
    -1
      salt/minion.sls

+ 1
- 2
salt/master/minion.sls 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存