SaltStack on Solus
We use SaltStack and SodiumSuite (which uses SaltStack) for all of our system management, but there is no Salt or Salt-Minion packages in EOPKG format. Nothing in the Solus repos, and SaltStack never mentions Solus at all. Has anyone had any luck getting SaltStack installed via some manual or alternative method?
I was able to get it to install on Solus 3 by cloning the 2017.7.3 branch of the SaltStack git repository and installing some dependencies…
I cloned it into /root, as I was root, so I was in ~ (/root)
1.) run > python ~/salt/setup.py install
2.) copy ~/salt/pkg/salt-minion.service to /usr/lib/systemd/system
3.) run > systemctl daemon-reload && systemctl enable salt-minion
4.)Then install some dependencies:
5.) Edit /etc/salt/minion_id to be whatever id
6.) Grab the default salt-minion config from ~/salt/conf/minion and put it in /etc/salt/minion, edit it to point to the correct salt master
7.) Start salt minion in debug mode and check that it’s all good! run > salt-minion -l debug
8.) log into the master, accept the key, and run > salt <minion_id> test.ping
That’s as far as I got, but I was able to get it to ping back to the master! Solus isn’t an officially supported OS from Salt. I work very closely with Salt at my day job, and we have a good relationship with them. I would be surprised to see it ever *officially* supported, but it seems that it is possible with Solus, so maybe we’ll get lucky!
That’s awesome, thanks so much. I’ll give this a try and see where I get. It’s sad that there is unlikely to ever be official support, but that I pretty much expected. But if we can get it installed and “pinging”, it seems likely that essentially everything will work.
And it is working! Thanks so much, this is great. Been wanting this for a while.
Here is the concise installation steps if someone wants to just run through them in a few seconds…
cd /tmp; wget https://github.com/saltstack/salt/archive/2018.3.zip
unzip 2018.3.zip; cd /tmp/salt-2018.3/
python /root/salt-2018.3setup.py install
echo “saltmasterip salt” >> /etc/hosts
cp /root/salt-2018.3/pkg/salt-minion.service /usr/lib/systemd/system/
systemctl daemon-reload && systemctl enable salt-minion
eopkg install python-pyzmq pycrypto python-msgpack python-tornado python-jinja pyyaml
systemctl restart salt-minion