Преглед изворни кода

Merge "Secure salt minion files."

pull/73/head
Vasyl Saienko пре 6 година
родитељ
комит
26b4ba58b7
4 измењених фајлова са 14 додато и 1 уклоњено
  1. +3
    -1
      salt/files/userdata
  2. +2
    -0
      salt/master/minion.sls
  3. +3
    -0
      salt/minion/base.sls
  4. +6
    -0
      salt/minion/service.sls

+ 3
- 1
salt/files/userdata Прегледај датотеку

@@ -6,4 +6,6 @@ curl --insecure -L http://bootstrap.saltstack.org -o install_salt.sh
sh install_salt.sh
echo "id: {{ node_name }}.{{ cluster.domain }}" > /etc/salt/minion.d/minion.conf
echo "master: salt/master: {{ cluster.config.host }}" >> /etc/salt/minion.d/minion.conf
service salt-minion restart
chown root:root /etc/salt/minion.d/minion.conf
chmod 0600 /etc/salt/minion.d/minion.conf
service salt-minion restart

+ 2
- 0
salt/master/minion.sls Прегледај датотеку

@@ -8,6 +8,8 @@ include:
file.managed:
- source: salt://salt/files/_orchestration.conf
- user: root
- group: root
- mode: 600
- template: jinja
- makedirs: true
- require:

+ 3
- 0
salt/minion/base.sls Прегледај датотеку

@@ -32,6 +32,7 @@ salt_minion_dependency_packages:
- source: salt://salt/files/minion.conf
- user: root
- group: root
- mode: 600
- template: jinja
- require:
- {{ minion.install_state }}
@@ -42,6 +43,8 @@ salt_minion_dependency_packages:
file.managed:
- source: salt://salt/files/_renderer.conf
- user: root
- group: root
- mode: 600
- template: jinja
- require:
- {{ minion.install_state }}

+ 6
- 0
salt/minion/service.sls Прегледај датотеку

@@ -31,6 +31,7 @@ salt_minion_dependency_packages:
- source: salt://salt/files/minion.conf
- user: root
- group: root
- mode: 600
- template: jinja
- require:
- {{ minion.install_state }}
@@ -45,6 +46,9 @@ salt_minion_dependency_packages:
salt_minion_config_{{ service_name }}_{{ name }}:
file.managed:
- name: /etc/salt/minion.d/_{{ name }}.conf
- user: root
- group: root
- mode: 600
- contents: |
{{ conf|yaml(False)|indent(8) }}
- require:
@@ -99,6 +103,8 @@ salt_minion_{{ service_name }}_dependencies_pip:
file.managed:
- source: salt://salt/files/_renderer.conf
- user: root
- group: root
- mode: 600
- template: jinja
- require:
- {{ minion.install_state }}

Loading…
Откажи
Сачувај