summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-03-17 16:08:57 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-03-28 16:36:57 +0000
commit84cb06607e2530757e8ab545b10de5fae3b6862a (patch)
tree1d80c124ad7e085db46814754c89bd80d09a8e97
parent87b3934d36a7a9532d6af720cd5b04e3082a0e9c (diff)
downloaddefinitions-baserock/richardipsum/distbuild-with-setup2.tar.gz
distbuild: Add example cluster for deploymentbaserock/richardipsum/distbuild-with-setup2
Since the nodes are deployed as NFS root file systems, there's no VERSION_LABEL field in this cluster, as there is no upgrade method. The build nodes are stateless and deployed fresh each time.
-rw-r--r--example-distbuild-cluster.morph37
1 files changed, 37 insertions, 0 deletions
diff --git a/example-distbuild-cluster.morph b/example-distbuild-cluster.morph
new file mode 100644
index 00000000..736a5beb
--- /dev/null
+++ b/example-distbuild-cluster.morph
@@ -0,0 +1,37 @@
+name: example-distbuild-cluster
+kind: cluster
+description: |
+ This is an example cluster morph that can be adapted to set up a
+ Baserock distributed build network.
+
+ You will need to deploy a Trove for the distributed build network
+ to use before deploying this cluster. The worker SSH key file should
+ be generated as part of the Trove deployment. It is the key used by
+ workers to authenticate with the Trove to give them read access to
+ all source repositories.
+systems:
+- morph: distbuild-system-x86_64-generic
+ deploy-defaults:
+ TROVE_ID: $MY_TROVE
+ CONTROLLERHOST: build-controller
+ DISTBUILD_CONTROLLER: no
+ DISTBUILD_WORKER: yes
+ FSTAB_SRC: LABEL=src /srv/distbuild auto defaults,rw,noatime 0 2
+ INSTALL_FILES: distbuild/manifest
+ NFSBOOT_CONFIGURE: yes
+ WORKER_SSH_KEY: ssh-keys/worker.key
+ deploy:
+ build-controller:
+ type: nfsboot
+ location: $MY_TROVE
+ DISTBUILD_CONTROLLER: yes
+ HOSTNAME: build-controller
+ WORKERS: build-node-1, build-node-2
+ build-node-1:
+ type: nfsboot
+ location: $MY_TROVE
+ HOSTNAME: build-node-1
+ build-node-2:
+ type: nfsboot
+ location: $MY_TROVE
+ HOSTNAME: build-node-2