SaltStack is one of the many system and configuration management solutions which is available for FreeBSD. It is used at SoCruel.NU for both implementation and management! The basics of SaltStack on FreeBSD are discussed in this blog post.
The following requirements have to be in place to be able to implement what is described in this post:
The SaltStack software is in the FreeBSD Ports tree:
This software covers both the SaltStack client (called the minion) and the SaltStack master server.
To install SaltStack run:
# pkg install py27-salt
The configuration decides if this installation becomes a Salt master or a Salt minion or both.
The Saltstack software installation also installs some other packages. See the
Makefile in SaltStack in FreeBSD Ports for more details.
If we look at the filesystem and do a
salt we find:
# find / -name salt /usr/local/etc/salt /usr/local/lib/python2.7/site-packages/salt /usr/local/bin/salt /var/log/salt /var/cache/salt /var/run/salt
What does this all mean?
/usr/local/etc/saltis the directory for the Salt configuration
/usr/local/lib/python2.7/site-packages/saltis the directory which stores Salt runners, modules and states.
/usr/local/bin/saltis the main Salt binary file
/var/log/saltis the Salt log directory
/var/cache/saltis the Salt cache directory
/var/run/saltis the Salt socket directory
/usr/local/bin/salt some other Salt executables are installed in the
# cd /usr/local/bin # ls -l salt* 4K -rwxr-xr-x 1 root wheel 387 Mar 25 03:18 salt 4K -rwxr-xr-x 1 root wheel 395 Mar 25 03:18 salt-api 4K -rwxr-xr-x 1 root wheel 397 Mar 25 03:18 salt-call 4K -rwxr-xr-x 1 root wheel 399 Mar 25 03:18 salt-cloud 4K -rwxr-xr-x 1 root wheel 393 Mar 25 03:18 salt-cp 4K -rwxr-xr-x 1 root wheel 395 Mar 25 03:18 salt-key 4K -rwxr-xr-x 1 root wheel 401 Mar 25 03:18 salt-master 4K -rwxr-xr-x 1 root wheel 401 Mar 25 03:18 salt-minion 4K -rwxr-xr-x 1 root wheel 971 Mar 25 03:17 salt-proxy 4K -rwxr-xr-x 1 root wheel 395 Mar 25 03:18 salt-run 4K -rwxr-xr-x 1 root wheel 395 Mar 25 03:18 salt-ssh 4K -rwxr-xr-x 1 root wheel 401 Mar 25 03:18 salt-syndic 4K -rwxr-xr-x 1 root wheel 399 Mar 25 03:18 salt-unity
These are just the basics of Salt on FreeBSD. More posts on the subject Salt will follow! Until next time.
Some (other) resources about this subject: