SaltStack on Solus

Answered

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?

Level 1 Asked on February 18, 2018 in General.
Add Comment
3 Answer(s)
Best answer

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:

python-pyzmq
pycrypto
python-msgpack
python-tornado
python-jinja
pyyaml

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!

Level 1 Answered on March 2, 2018.
Add Comment

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.

Level 1 Answered on March 2, 2018.
Add Comment

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
“`

Level 1 Answered on March 3, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.