diff --git a/vagrant/provision-master.sh b/vagrant/provision-master.sh index 2f5acf3a3239..456db10a185b 100755 --- a/vagrant/provision-master.sh +++ b/vagrant/provision-master.sh @@ -33,12 +33,12 @@ popd # Start docker systemctl enable docker.service systemctl start docker.service -usermod -a -G docker vagrant # Create systemd service cat < /usr/lib/systemd/system/openshift-master.service [Unit] Description=openshift master +Requires=docker.service After=network.service [Service] diff --git a/vagrant/provision-minion.sh b/vagrant/provision-minion.sh index 6ce0e02adb57..2affb80eefa5 100755 --- a/vagrant/provision-minion.sh +++ b/vagrant/provision-minion.sh @@ -39,8 +39,6 @@ else $(dirname $0)/provision-gre-network.sh $@ fi -usermod -a -G docker vagrant - # Copy over the certificates directory and modify the kubeconfig file to use the master ip cp -r /vagrant/openshift.local.certificates / chown -R vagrant.vagrant /openshift.local.certificates @@ -50,6 +48,7 @@ sed -ie "s/10.0.2.15/${MASTER_IP}/g" /openshift.local.certificates/admin/.kubeco cat < /usr/lib/systemd/system/openshift-node.service [Unit] Description=openshift node +Requires=docker.service After=network.service [Service]