From e2b24f9b20ca11d86c0680be91a6532162b34baa Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Thu, 11 Dec 2014 14:28:25 +0000 Subject: Add ZooKeeper systems for x86_64 and example cluster to deploy them. The Java binary chunk only works for x86_64. As such, these systems are limited to that architecture and use the demo strata developed in the previous commit. The cluster provides the ability to deploy either or both of the systems to a libvirt/kvm host. --- clusters/zookeeper.morph | 21 +++++++++++++++ systems/devel-system-x86_64-zookeeper-client.morph | 31 ++++++++++++++++++++++ systems/devel-system-x86_64-zookeeper-server.morph | 31 ++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 clusters/zookeeper.morph create mode 100644 systems/devel-system-x86_64-zookeeper-client.morph create mode 100644 systems/devel-system-x86_64-zookeeper-server.morph diff --git a/clusters/zookeeper.morph b/clusters/zookeeper.morph new file mode 100644 index 00000000..b7f2dd27 --- /dev/null +++ b/clusters/zookeeper.morph @@ -0,0 +1,21 @@ +name: zookeeper +kind: cluster +systems: + - morph: systems/devel-system-x86_64-zookeeper-client.morph + deploy: + my-client-system: + type: kvm + location: kvm+ssh://username@HOSTNAME/machinename/path/to/zookeeper-client.img + DISK_SIZE: 4G + RAM_SIZE: 1G + VCPUS: 1 + HOSTNAME: zkclient + - morph: systems/devel-system-x86_64-zookeeper-server.morph + deploy: + my-server-system: + type: kvm + location: kvm+ssh://username@HOSTNAME/machinename/path/to/zookeeper-server.img + DISK_SIZE: 4G + RAM_SIZE: 1G + VCPUS: 1 + HOSTNAME: zkserver diff --git a/systems/devel-system-x86_64-zookeeper-client.morph b/systems/devel-system-x86_64-zookeeper-client.morph new file mode 100644 index 00000000..6f6f438f --- /dev/null +++ b/systems/devel-system-x86_64-zookeeper-client.morph @@ -0,0 +1,31 @@ +name: devel-system-x86_64-zookeeper-client +kind: system +description: A system that is able to build other systems based on the 64-bit x86 + architecture. includes th installation of zookeeper and a test client. +arch: x86_64 +strata: +- name: build-essential + morph: strata/build-essential.morph +- name: core + morph: strata/core.morph +- name: foundation + morph: strata/foundation.morph +- name: bsp-x86_64-generic + morph: strata/bsp-x86_64-generic.morph +- name: tools + morph: strata/tools.morph +- name: morph-utils + morph: strata/morph-utils.morph +- name: openstack-clients + morph: strata/openstack-clients.morph +- name: cloudinit-support + morph: strata/cloudinit-support.morph +- name: zookeeper + morph: strata/zookeeper-client.morph +configuration-extensions: +- set-hostname +- add-config-files +- simple-network +- nfsboot +- install-files +- cloud-init diff --git a/systems/devel-system-x86_64-zookeeper-server.morph b/systems/devel-system-x86_64-zookeeper-server.morph new file mode 100644 index 00000000..1c1f8496 --- /dev/null +++ b/systems/devel-system-x86_64-zookeeper-server.morph @@ -0,0 +1,31 @@ +name: devel-system-x86_64-zookeeper-server +kind: system +description: A system that is able to build other systems based on the 64-bit x86 + architecture. includes the zookeeper server and setup for basic tests +arch: x86_64 +strata: +- name: build-essential + morph: strata/build-essential.morph +- name: core + morph: strata/core.morph +- name: foundation + morph: strata/foundation.morph +- name: bsp-x86_64-generic + morph: strata/bsp-x86_64-generic.morph +- name: tools + morph: strata/tools.morph +- name: morph-utils + morph: strata/morph-utils.morph +- name: openstack-clients + morph: strata/openstack-clients.morph +- name: cloudinit-support + morph: strata/cloudinit-support.morph +- name: zookeeper + morph: strata/zookeeper-server.morph +configuration-extensions: +- set-hostname +- add-config-files +- simple-network +- nfsboot +- install-files +- cloud-init -- cgit v1.2.1