FriskByBergen/pi-gen

Add salt-minion

Opened this issue · 1 comments

To install manually this is the process:

wget -O - https://repo.saltstack.com/apt/debian/8/armhf/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
echo 'deb http://repo.saltstack.com/apt/debian/8/armhf/latest jessie main' > /etc/apt/sources.list.d/saltstack.list
apt-get update
apt-get install salt-minion

Then to configure salt-minion put the following in /etc/salt/minion:

master: salt.friskby.no
master_finger: 79:74:ee:b0:e1:98:2e:28:a3:8c:85:f7:05:04:6e:64:75:bc:c0:d3:80:3b:54:51:66:f7:78:61:3d:d0:1c:c9
id: foo

Then make the salt-minion service start (and start on boot)

It would maybe be nice to wait until someone has configured the device with an ID before starting the salt-minion. Then the id can be added to the /etc/salt/minion file, making it easier to know who is who on the master.