#!/bin/sh
set -x

pkg install -y py27-salt
mkdir -p /etc/rc.conf.d
echo 'salt_minion_enable="YES"' > /etc/rc.conf.d/salt_minion
mkdir -p /usr/local/etc/salt/minion.d
echo 'ipv6: True' > /usr/local/etc/salt/minion.d/ipv6.conf
echo 'master: salt.mky.waw.pl' > /usr/local/etc/salt/minion.d/master.conf
echo $(hostname) > /usr/local/etc/salt/minion_id
service salt_minion start

