summaryrefslogtreecommitdiff
path: root/distbuild/lib
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-03-17 12:36:15 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-03-28 16:36:57 +0000
commitdfb79081b1624dc9c019b02468e59c0fd10e6330 (patch)
tree3ef195fd739f2abdfa05bf0401b23f4109c4408e /distbuild/lib
parent0ed129b7644d080ddab8447b183e666623563e6b (diff)
downloaddefinitions-dfb79081b1624dc9c019b02468e59c0fd10e6330.tar.gz
Import distbuild configuration files into definitions.git
These files should be installed into distbuild worker and controller systems using the install-files configure extension, by adding the following line in the cluster morphology. INSTALL_FILES: distbuild/manifest These files were previously in the internal Codethink chunk repo 'distbuild-setup', and were installed by a Makefile.
Diffstat (limited to 'distbuild/lib')
-rwxr-xr-xdistbuild/lib/systemd/system-generators/ccache-nfs-mount-generator16
1 files changed, 16 insertions, 0 deletions
diff --git a/distbuild/lib/systemd/system-generators/ccache-nfs-mount-generator b/distbuild/lib/systemd/system-generators/ccache-nfs-mount-generator
new file mode 100755
index 00000000..127bc84f
--- /dev/null
+++ b/distbuild/lib/systemd/system-generators/ccache-nfs-mount-generator
@@ -0,0 +1,16 @@
+#!/bin/sh
+read trove_host </etc/trove-host
+while read line; do echo "$line"; done >"$1/srv-distbuild-ccache.mount" <<EOF
+[Unit]
+Requires=rpcbind.service
+After=rpcbind.service
+SourcePath=/etc/trove-host
+
+[Mount]
+Type=nfs
+What=$trove_host:/home/cache/ccache
+Where=/srv/distbuild/ccache
+
+[Install]
+WantedBy=morph-worker.service
+EOF