summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-05-21 16:56:32 (GMT)
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-05-21 16:56:32 (GMT)
commita69d90084b06956b5476d379fcddb2b7415fdec5 (patch)
tree1985496eea9bc4b331c789199d0c2de8f6bb7dda
parent47f8006f6c1635d8b1af216b65e4a99a707caa66 (diff)
downloaddefinitions-a69d90084b06956b5476d379fcddb2b7415fdec5.tar.gz
Create the minion configuration in trove.configure
Minions load its configuration from /etc/lorry-controller/minion.conf and the file wasn't been generated at deploy time.
-rwxr-xr-xtrove.configure11
1 files changed, 11 insertions, 0 deletions
diff --git a/trove.configure b/trove.configure
index cdd37b9..1851e38 100755
--- a/trove.configure
+++ b/trove.configure
@@ -127,6 +127,17 @@ confgit-url = ssh://git@localhost/$TROVE_ID/local-config/lorries
EOF
+echo "Create MINION config"
+cat <<EOF > "$ROOT/etc/lorry-controller/minion.conf"
+[config]
+log = syslog
+log-level = debug
+webapp-host = localhost
+webapp-port = 12765
+webapp-timeout = 3600
+EOF
+
+
echo "Set up Lorry Controller MINIONs"
UNITS="$ROOT/usr/lib/systemd/system"
seq "${LORRY_CONTROLLER_MINIONS:-4}" |