Installing Salt on PicOS
NOTE:
- You can see an example of Salt module to manipulate PicOS configuration on our Github repository:
https://github.com/pica8/Configuration-Managers
If the FTP server is connected via the Eth0/1 port, you need to add the string sudo ip vrf exec mgmt-vrf before the apt-get command when executing the apt-get operation.
For example:
admin@Xorplus:~$ sudo ip vrf exec mgmt-vrf apt-get update
If sudo ip vrf exec mgmt-vrf is not added, find the next hop routing information from the default VRF. For the usage of VRF, refer to the VRF configuration guide.
Step 1 - Use the correct repository for the specific application and CPU on the switch. Pica8 support can help in the choice of repository.
$ sudo more /etc/apt/sources.list | grep -v "#" deb http://ftp.debian-ports.org/debian/ unstable main
For a typical salt installation, the latest standard debian repo is advised.
Step 2 - Update the debian packages on PicOS
admin@XorPlus$sudo apt-get update Hit http://ftp.tw.debian.org stable Release.gpg Hit http://ftp.tw.debian.org stable Release Hit http://ftp.tw.debian.org stable/main powerpc Packages Hit http://ftp.tw.debian.org stable/main Translation-en Reading package lists... Done admin@XorPlus$
Step 3 - Install salt-common and salt-minion and configure it
sudo apt-get install salt-common sudo apt-get install salt-minion
Look at the salt documentation to understand how to connect the salt-minion to a salt-master. A simple installation would need at least minor modification on the minion configuration file.
more /etc/salt/minion # Set the location of the salt master server, if the master server cannot be # resolved, then the minion will fail to start. master: salt.example.com
Copyright © 2024 Pica8 Inc. All Rights Reserved.