Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | {%- from "salt/map.jinja" import config with context %} |
| 2 | {%- set cluster = salt['pillar.get']('salt:control:cluster:'+cluster_name) %} |
| 3 | {%- set node = salt['pillar.get']('salt:control:cluster:'+cluster_name+':node:'+node_name) %} |
| 4 | #!/bin/bash |
| 5 | curl --insecure -L http://bootstrap.saltstack.org -o install_salt.sh |
| 6 | sh install_salt.sh |
| 7 | echo "id: {{ node_name }}.{{ cluster.domain }}" > /etc/salt/minion.d/minion.conf |
| 8 | echo "master: salt/master: {{ cluster.config.host }}" >> /etc/salt/minion.d/minion.conf |
Dzmitry Stremkouski | be5d555 | 2018-08-09 16:51:55 +0200 | [diff] [blame^] | 9 | chown root:root /etc/salt/minion.d/minion.conf |
| 10 | chmod 0600 /etc/salt/minion.d/minion.conf |
| 11 | service salt-minion restart |