Salt-Master
apt-get update
curl -L https://bootstrap.saltstack.com -o install_salt.sh
sh install_salt.sh -P -M -N
nano /etc/salt/master
# The address of the interface to bind to:
interface: 123.456.78.9
service salt-master restart
salt-key --finger-all
Local Keys:
master.pem: 94:fc:76:...
master.pub: 38:4f:c7:...
salt-key -A
salt-key -L
salt-run manage.up
salt '*' test.ping
salt '*' disk.usage
salt '*' cmd.run 'free -h'
Salt-Minions
apt-get update
curl -L https://bootstrap.saltstack.com -o install_salt.sh
sh install_salt.sh -P
nano /etc/salt/minion
# Set the location of the salt master server. If the master server cannot be
# resolved, then the minion will fail to start.
master: 123.456.78.9
nano /etc/salt/minion
# Fingerprint of the master public key to validate the identity of your Salt master
# before the initial key exchange. The master fingerprint can be found by running
# "salt-key -f master.pub" on the Salt master.
master_finger: '38:4f:c7:...'
service salt-minion restart
沒有留言:
張貼留言