3 # vim: sw=4 ts=4 sts=4 et :
6 # make sure we're fully updated
7 echo "---> Updating OS"
11 # install docker and enable it
12 echo "---> Installing docker"
13 yum install -y docker supervisor bridge-utils
14 systemctl enable docker
16 # configure docker networking so that it does not conflict with LF
18 cat <<EOL > /etc/sysconfig/docker-network
19 # /etc/sysconfig/docker-network
20 DOCKER_NETWORK_OPTIONS='--bip=10.250.0.254/24'
22 # configure docker daemon to listen on port 5555 enabling remote
24 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
26 # docker group doesn't get created by default for some reason
31 # make sure we're fully updated
32 echo "---> Updating OS"
34 apt-get upgrade -y -qq
37 OS=`/usr/bin/facter operatingsystem`
46 echo "${OS} has no configuration changes"
50 echo "***************************************************"
51 echo "* PLEASE RELOAD THIS VAGRANT BOX BEFORE USE *"
52 echo "***************************************************"