docker run --rm -d \
-v $(pwd)/master/etc:/root/etc \
-v $(pwd)/master/srv:/srv \
-h dev-salt-master \
--name dev-salt-master \
simplyadrian/allsalt:debian_master_2017.7.2
docker exec -it dev-salt-master bash
docker run --rm -d \
-v $(pwd)/minion/etc:/root/etc \
-h dev-ubuntu-minion \
--name dev-ubuntu-minion \
simplyadrian/allsalt:ubuntu_minion_2017.7.2
docker exec -it dev-ubuntu-minion bash
salt-key
salt-key -A -y
salt dev-ubuntu-minion test.ping
salt '*' pkg.install vim refresh=True
salt dev-ubuntu-minion pkg.install python-pyinotify
cp /root/etc/salt/master.d/reactor.conf /etc/salt/master.d/reactor.conf
cp /root/etc/salt/master.d/runners.conf /etc/salt/master.d/runners.conf
mkdir -p /srv/.cark-logs
cp /root/etc/salt/minion.d/beacons.conf /etc/salt/minion.d/beacons.conf
docker restart dev-salt-master
docker restart dev-ubuntu-minion
salt-run state.event pretty=true
touch /srv/.cark-logs/.cyberark_api_call.log
When it's done cat the file:
cat /srv/.cark-logs/.cyberark_api_call.log