From bfe37878fd8cfadd32bae500bac9b420cd066a2d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 12 Oct 2014 18:42:45 +0300 Subject: Add an example cluster morphology for Troves --- clusters/trove-example.morph | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 clusters/trove-example.morph diff --git a/clusters/trove-example.morph b/clusters/trove-example.morph new file mode 100644 index 00000000..0a95e334 --- /dev/null +++ b/clusters/trove-example.morph @@ -0,0 +1,57 @@ +name: trove-example +kind: cluster +description: | + This is an example cluster morphology for deploying a Trove, + both the initial deployment and an upgrade. + + You need some ssh keys, which you can create like this: + + mkdir ssh_keys + ssh-keygen -N '' -f ssh_keys/lorry.key + ssh-keygen -N '' -f ssh_keys/mason.key + ssh-keygen -N '' -f ssh_keys/worker.key + ssh-keygen -N '' -f ssh_keys/trove-admin.key + + You may also put in your own keys instead of creating new ones. + + To do the initial deployment: + + morph deploy --upgrade clusters/trove-example.morph \ + initial \ + initial.location=kvm+ssh://liw@192.168.122.1/test-trove/tmp/test-trove.img + + To do an upgrade: + + morph deploy clusters/trove-example.morph \ + upgrade upgrade.VERSION_LABEL=123 + + where `VERSION_LABEL` gets a new unique value each time. + + Remember to always specify either initial or upgrade as the + deployment name to use, otherwise morph will attempt to deploy both. +systems: +- morph: systems/trove-system-x86_64.morph + deploy-defaults: + HOSTNAME: test-trove + VCPUS: 2 + RAM_SIZE: 2G + DISK_SIZE: 8G + LORRY_SSH_KEY: ssh_keys/lorry.key + MASON_SSH_PUBKEY: ssh_keys/mason.key.pub + WORKER_SSH_PUBKEY: ssh_keys/worker.key.pub + TROVE_ADMIN_EMAIL: adminuser@example.com + TROVE_ADMIN_NAME: Nobody + TROVE_ADMIN_SSH_PUBKEY: ssh_keys/trove-admin.key.pub + TROVE_ADMIN_USER: adminuser + TROVE_COMPANY: Company name goes here + TROVE_HOST: test-trove + TROVE_ID: test-trove + UPSTREAM_TROVE: '' + deploy: + initial: + type: kvm + location: kvm+ssh://vm-user@vm-host/test-trove/vm-path/test-trove.img + VERSION_LABEL: 1 + upgrade: + type: ssh-rsync + location: test-trove -- cgit v1.2.1 From 4934be0887a6e957c866cdb3485e7f4aafe1a9f1 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Mon, 13 Oct 2014 15:00:29 +0100 Subject: Add URL to trove example cluster --- clusters/trove-example.morph | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clusters/trove-example.morph b/clusters/trove-example.morph index 0a95e334..25ee579d 100644 --- a/clusters/trove-example.morph +++ b/clusters/trove-example.morph @@ -29,6 +29,9 @@ description: | Remember to always specify either initial or upgrade as the deployment name to use, otherwise morph will attempt to deploy both. + + You can find documentation for Trove at the following web address: + http://wiki.baserock.org/Trove/ systems: - morph: systems/trove-system-x86_64.morph deploy-defaults: -- cgit v1.2.1