I develop the Salt scripts against a local VM. Once it is time to deploy remotely the process is as follows:
- Start up the VM with provider of choice (I use and recommend Bytemark)
- Log in via SSH
- Add the appropriate Saltstack Package Repoisitory
apt-get update
apt-get upgrade
apt-get install salt-minion
- Configure the SaltStack Minion to run masterless: edit
/etc/salt/minion
and ensure thatfile_client: local
is set. - Tar up the SaltStack configuration files you’ve created,
scp
them across to the server, andtar xzf
them out into/srv/salt/
salt-call --local state.apply
- Now wait a bit. Hopefully there won’t be any errors.
/usr/sbin/update-exim4.conf
systemctl restart exim4