3 # vim: sw=4 ts=4 sts=4 et :
7 # install docker and enable it
8 echo "---> Installing docker"
9 yum install -y docker supervisor bridge-utils
10 systemctl enable docker
12 # configure docker networking so that it does not conflict with LF
14 cat <<EOL > /etc/sysconfig/docker-network
15 # /etc/sysconfig/docker-network
16 DOCKER_NETWORK_OPTIONS='--bip=10.250.0.254/24'
18 # configure docker daemon to listen on port 5555 enabling remote
20 sed -i -e "s#='--selinux-enabled'#='--selinux-enabled -H unix:///var/run/docker.sock -H tcp://0.0.0.0:5555'#g" /etc/sysconfig/docker
22 # docker group doesn't get created by default for some reason
25 # Install python dependencies
26 yum install -y python-{devel,virtualenv,setuptools,pip}
30 echo "---> Ubuntu changes"
33 OS=$(/usr/bin/facter operatingsystem)
42 echo "${OS} has no configuration changes"
46 echo "***************************************************"
47 echo "* PLEASE RELOAD THIS VAGRANT BOX BEFORE USE *"
48 echo "***************************************************"