Salt On Pi

Here are some tricks for making a Pi be a salt client and some other unrelated notes.

vipw # change: # root:x:0:0:root:/root:/bin/bash # into: # root::0:0:root:/root:/bin/bash shutdown -r now # wait for reboot; log back in sudo passwd root # change password for root

apt install vim htop dstat wget locate

# Follow code on https://repo.saltstack.com/ curl -L https://bootstrap.saltstack.com -o install_salt.sh sudo sh install_salt.sh -P vim /etc/salt/minion # Possibly specify minion ID vim /etc/hosts # add 'salt' with the static IP of the salt server service salt-minion restart service salt-minion status

On salt server:

salt-key # observe key registrations salt-key -a pi salt 'pi' test.ping

Troubleshooting:

If you see The master failed to decrypt the random minion token in a call to service salt-minion status, be sure to update to the latest minion.

[Edit]