summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-03 13:09:45 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-03 13:09:45 +0100
commit2df00fb4fadce2f5e966ed3ee944f8d502c8d02b (patch)
tree11cdb0194d4aede0e1890f83d65b3aae4f3db5dc
parentcaa5f0ca50be6f5604e01dcfa62de9fbb1bbe929 (diff)
downloadtrove-setup-2df00fb4fadce2f5e966ed3ee944f8d502c8d02b.tar.gz
Add mason configuration to trove-early-setup
-rwxr-xr-xbins/trove-early-setup14
1 files changed, 13 insertions, 1 deletions
diff --git a/bins/trove-early-setup b/bins/trove-early-setup
index 147916c..6954a8c 100755
--- a/bins/trove-early-setup
+++ b/bins/trove-early-setup
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
# -*- Make -*-
-all: substitutions-done gitano-configured lorry-configured cache-configured
+all: substitutions-done gitano-configured lorry-configured cache-configured mason-configured
USERS := git lorry cache
@@ -88,3 +88,15 @@ cache-setup: /home/cache/.cache-setup
touch $@
cache-configured: cache-setup
+
+mason-setup: /home/git/.mason-setup
+/home/git/.mason-setup: gitano-configured
+ PREFIX=$$(echo "##PREFIX##" | sed -f /etc/trove-setup.sed); \
+ su -c "ssh localhost create $${PREFIX}/mason-config" - git; \
+ su -c "git clone ssh://localhost/$${PREFIX}/mason-config.git /tmp/mason-config" - git
+ su -c "cd /tmp/mason-config; mkdir ci1; echo '[]' > ci1/systems.json.txt" - git
+ su -c "cd /tmp/mason-config; echo '[]' > ci1/hosts.json.txt" - git
+ su -c "cd /tmp/mason-config; git add ci1; git commit -m 'Set initial Mason config'; git push origin master" - git
+ su -c "rm -fr /tmp/mason-config" - git
+
+mason-configured: mason-setup