heat-coe-templates/fragments/enable-services-minion.sh
Lars Kellogg-Stedman b1c36cdd31 refactor config using software config support
this splits the giant user-data script into smaller modules.  this
makes things easier to manage and also permits us to use cloud-config
scripts in addition to shell scripts.
2014-12-30 22:47:10 -05:00

16 lines
449 B
Bash

#!/bin/sh
# docker is already enabled and possibly running on centos atomic host
# so we need to stop it first and delete the docker0 bridge (which will
# be re-created using the flannel-provided subnet).
echo stopping docker
systemctl stop docker
ip link del docker0
echo starting services
for service in wait-for-flanneld flanneld docker.socket docker kubelet kube-proxy; do
systemctl enable $service
systemctl --no-block start $service
done