Archive for September, 2014


setup salt minion

setup salt minion

on minion side:


curl -L https://bootstrap.saltstack.com -o install_salt.sh
sudo sh install_salt.sh git develop
sed -i 's/#master: salt/master: master.com/g' /etc/salt/minion
sed -i 's/#id:/#id: worker01/g' /etc/salt/minion
salt-minion -d
ps aux | grep minion

on master side:


salt-key -L
salt-key -A
salt '*' test.ping

Advertisements

Server restart manual

AFTER RESTART:
1. restart nginx
2. restart postgresql


/usr/local/bin/postmaster -D /usr/local/postgresql/data > postgresql.log 2>&1 &

3. restart rabbitmq


/etc/init.d/rabbitmq-server start

4. restart postfix/dovecot
5. open iptables
6. restart django