FriskByBergen / pi-gen

Tool used to create the raspberrypi.org Raspbian images
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Add salt-minion #13

Open mortalisk opened 7 years ago

mortalisk commented 7 years ago

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)

mortalisk commented 7 years ago

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.