Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install SaltStack
# make some directories
mkdir -p $HOME/usr $HOME/src $HOME/srv/salt $HOME/etc/salt/minion.d $HOME/etc/salt/master.d
# download requirements
curl$PY_VER/Python-$PY_VER.tgz -o $HOME/src/Python-$PY_VER.tgz
curl -o $HOME/src/
# extract tarball
tar zxf $HOME/src/Python-$PY_VER.tgz -C $HOME/src
# install python
cd $HOME/src/Python-$PY_VER
./configure --prefix=$HOME/usr
make install
cd -
# add locally installed software to search path
echo "PATH=$HOME/usr/bin:$PATH" >> $HOME/.bash_profile
source $HOME/.bash_profile
# install pip
python $HOME/src/
# install salt prereqs
pip install pyzmq pyyaml pycrypto msgpack-python jinja2 psutil
pip install gitpython
pip install requests backports.ssl-match-hostname six singledispatch certifi backports-abc tornado futures
# install salt
pip install --global-option="--salt-root-dir=$HOME" salt
# configure salt for non-root
echo -e "user: $(whoami)\nroot_dir: $HOME" > $HOME/etc/salt/master
echo -e "user: $(whoami)\nroot_dir: $HOME\nmaster: localhost" > $HOME/etc/salt/minion
# cleanup
rm -rf $HOME/src
# start daemons
salt-master -d
salt-minion -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment