From 485d9a90189b8608a858eb2e85fbe0dda24bc775 Mon Sep 17 00:00:00 2001 From: Zachary Sais Date: Sat, 17 Oct 2015 16:52:19 -0500 Subject: [PATCH] Cleanup template formatting This patch is meant to cleanup indentations in the templates, as well some other house keeping fixes. Closes-Bug: #1504685 Change-Id: I43f6cca8f449dea2db4de6a5308bfa5e4551838e --- .../docker-swarm/fragments/add-proxy.sh | 8 +++---- .../docker-swarm/fragments/enable-services.sh | 8 +++---- .../fragments/remove-docker-key.sh | 2 +- .../fragments/configure-docker-storage.sh | 1 - .../fragments/configure-flannel.sh | 9 ++++---- .../fragments/configure-kubernetes-master.sh | 14 ++++++------ .../fragments/configure-kubernetes-minion.sh | 22 +++++++++---------- .../fragments/enable-docker-registry.sh | 2 +- .../heat-kubernetes/fragments/enable-etcd.sh | 3 +-- .../fragments/enable-services-master.sh | 10 ++++----- .../fragments/enable-services-minion.sh | 1 - .../heat-kubernetes/fragments/kube-user.yaml | 1 - .../fragments/make-cert-client.sh | 12 +++++----- .../heat-kubernetes/fragments/make-cert.sh | 4 ++-- .../fragments/network-config-service.sh | 5 +++-- .../fragments/network-service.sh | 6 ++--- .../fragments/write-kube-os-config.sh | 1 - .../fragments/write-network-config.sh | 13 ++++++----- .../fragments/configure-mesos-slave.sh | 4 +++- 19 files changed, 61 insertions(+), 65 deletions(-) diff --git a/magnum/templates/docker-swarm/fragments/add-proxy.sh b/magnum/templates/docker-swarm/fragments/add-proxy.sh index edda41b69d..76531a3a26 100644 --- a/magnum/templates/docker-swarm/fragments/add-proxy.sh +++ b/magnum/templates/docker-swarm/fragments/add-proxy.sh @@ -7,8 +7,8 @@ if [ "$HTTP_PROXY" != "" ]; then [Service] Environment=HTTP_PROXY=$HTTP_PROXY EOF -systemctl daemon-reload -systemctl --no-block restart docker.service + systemctl daemon-reload + systemctl --no-block restart docker.service if [ -f "/etc/bashrc" ]; then cat >> /etc/bashrc <> /etc/bashrc < /etc/sysconfig/docker-storage-setup < $FLANNEL_JSON <> $FLANNEL_JSON <> $FLANNEL_JSON <> /etc/environment < $CA_CERT + -H "X-Auth-Token: $USER_TOKEN" \ + $MAGNUM_URL/certificates/$BAY_UUID | python -c 'import sys, json; print json.load(sys.stdin)["pem"]' > $CA_CERT # Create config for client's csr cat > ${cert_conf_dir}/client.conf < ${CLIENT_CERT} sed -i ' -s|CA_CERT|'"$CA_CERT"'| -s|CLIENT_CERT|'"$CLIENT_CERT"'| -s|CLIENT_KEY|'"$CLIENT_KEY"'| + s|CA_CERT|'"$CA_CERT"'| + s|CLIENT_CERT|'"$CLIENT_CERT"'| + s|CLIENT_KEY|'"$CLIENT_KEY"'| ' /srv/kubernetes/kubeconfig.yaml diff --git a/magnum/templates/heat-kubernetes/fragments/make-cert.sh b/magnum/templates/heat-kubernetes/fragments/make-cert.sh index 043f18621e..1396fa7226 100644 --- a/magnum/templates/heat-kubernetes/fragments/make-cert.sh +++ b/magnum/templates/heat-kubernetes/fragments/make-cert.sh @@ -45,8 +45,8 @@ SERVER_KEY=$cert_dir/server.key # Get CA certificate for this bay curl -X GET \ - -H "X-Auth-Token: $USER_TOKEN" \ - $MAGNUM_URL/certificates/$BAY_UUID | python -c 'import sys, json; print json.load(sys.stdin)["pem"]' > ${CA_CERT} + -H "X-Auth-Token: $USER_TOKEN" \ + $MAGNUM_URL/certificates/$BAY_UUID | python -c 'import sys, json; print json.load(sys.stdin)["pem"]' > ${CA_CERT} # Create config for server's csr cat > ${cert_conf_dir}/server.conf < $FLANNEL_JSON <> $FLANNEL_JSON <> $FLANNEL_JSON <> $FLANNEL_JSON < /etc/mesos-slave/ip echo "docker,mesos" > /etc/mesos-slave/containerizers # Amount of time to wait for an executor to register -echo "$EXECUTOR_REGISTRATION_TIMEOUT" > /etc/mesos-slave/executor_registration_timeout +cat > /etc/mesos-slave/executor_registration_timeout <