summaryrefslogtreecommitdiff
path: root/magnum/drivers/common/templates/swarm/fragments/add-docker-daemon-options.sh
blob: b08eb3132dd1a5db5871de4be6da7ac0ba917290 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

. /etc/sysconfig/heat-params

opts="-H fd:// -H tcp://0.0.0.0:2375 "

if [ "$TLS_DISABLED" = 'False' ]; then
    opts=$opts"--tlsverify --tlscacert=/etc/docker/ca.crt "
    opts=$opts"--tlskey=/etc/docker/server.key "
    opts=$opts"--tlscert=/etc/docker/server.crt "
fi

sed -i '/^OPTIONS=/ s#\(OPTIONS='"'"'\)#\1'"$opts"'#' /etc/sysconfig/docker