Salt Cloud - Install

Create Server

Login as root using the IP address or domain name:

sudo -i -u root
ssh the.server.ip.address

Install Salt

Note

To install, see Malcolm’s comments here: https://chat.kbsoftware.co.uk/kb/pl/rptyxbzzhjbsuypufd6jgs7pdr

From https://repo.saltstack.com/#ubuntu

Warning

Be sure to click the PY3 tab (not PY2)!

Run the following command to import the SaltStack repository:

For Ubuntu 22.04:

mkdir /etc/apt/keyrings
sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/amd64/3004/salt-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/20.04/amd64/3004 focal main" | sudo tee /etc/apt/sources.list.d/salt.list

Tip

I think the repo for 22.04 has been removed, so we are using 20.04.

For earlier versions:

sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/amd64/latest/salt-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg] https://repo.saltproject.io/py3/ubuntu/20.04/amd64/latest focal main" | sudo tee /etc/apt/sources.list.d/salt.list

Tip

If you get the following error: Skipping acquire of configured file ‘main/binary-i386/Packages’ as repository ‘xxx’ doesn’t support architecture ‘i386’ then add arch=amd64 to the options e.g. deb [arch=amd64 signed-by=/usr/share/keyrings/salt-archive-keyring.gpg] https...

Next Steps

  1. To setup a Salt Master

  2. To setup a Minion, Salt - Provision

Legacy Notes

Salt Cloud - Install (Legacy Notes)