From c9fd8cf3dd449caeafe27b6bef8bda594bcdfc30 Mon Sep 17 00:00:00 2001 From: Lauren Perry Date: Wed, 17 Dec 2014 13:27:39 +0000 Subject: Add firehose.configure, containing the necessary instructions to run firehose --- firehose.configure | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 firehose.configure diff --git a/firehose.configure b/firehose.configure new file mode 100644 index 0000000..c17fe59 --- /dev/null +++ b/firehose.configure @@ -0,0 +1,40 @@ +#!/bin/sh +set -e + +ROOT="$1" + +# Clone the Firehose repo +git clone git://git.baserock.org/baserock/baserock/firehose + +# Move Firehose arguments to specific directory and timer/service +# files to /etc/systemd +mkdir -p "$ROOT"/var/lib/firehose +cd firehose/ +cp examples/*.yaml "$ROOT"/var/lib/firehose/ +cp firehose.service "$ROOT"/etc/systemd/system/firehose.service +cp firehose.timer "$ROOT"/etc/systemd/system/firehose.timer + +# Run the Firehose install script +/usr/bin/python ./setup.py install + +cat >>"$ROOT"/etc/morph.conf <