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 updateapt-get upgradeapt-get install salt-minion- Configure the SaltStack Minion to run masterless: edit
/etc/salt/minionand ensure thatfile_client: localis set. - Tar up the SaltStack configuration files you’ve created,
scpthem across to the server, andtar xzfthem out into/srv/salt/ salt-call --local state.apply- Now wait a bit. Hopefully there won’t be any errors.
/usr/sbin/update-exim4.confsystemctl restart exim4