From 25041b86249fe763fd4171e2ab1aca535b3eb14f Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Mon, 11 Apr 2016 17:57:57 +0100 Subject: Add a simple templating system to Baserock definitions This is currently independent of the actual definitions format. The 'configure' tool generates actual .morph files from .morph.in files, and build tools then operate on these generated .morph files.t This is largely untested and no doubt broken! --- .../example-ceph-cluster-on-openstack.morph.in | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 clusters/example-ceph-cluster-on-openstack.morph.in (limited to 'clusters/example-ceph-cluster-on-openstack.morph.in') diff --git a/clusters/example-ceph-cluster-on-openstack.morph.in b/clusters/example-ceph-cluster-on-openstack.morph.in new file mode 100644 index 00000000..6ddabc90 --- /dev/null +++ b/clusters/example-ceph-cluster-on-openstack.morph.in @@ -0,0 +1,55 @@ +name: example-ceph-cluster-on-openstack +kind: cluster +description: | + This cluster morphology will deploy a 3 node ceph storage cluster to an + openstack server. + + It was written for use with the following guide on the baserock wiki: + http://wiki.baserock.org/guides/ceph-cluster-deploy/ + + See this guide for more information. + + See the ceph.configure file for more informatiion on the ceph + specific fields used in this cluster morphology. + +systems: +- morph: systems/ceph-service-x86_64-generic.morph + deploy: + ceph-mon-0-openstack: + # openstack info + <<: &common-config + type: openstack + location: http://:5000/v2.0/ + OPENSTACK_USER: demo + OPENSTACK_PASSWORD: demo + OPENSTACK_TENANT: demo + CLOUD_INIT: true + KERNEL_ARGS: console=ttyS0 console=tty0 + CEPH_CLUSTER: ceph + CEPH_CONF: ceph.conf + CEPH_CLIENT_ADMIN: ceph.client.admin.keyring + CEPH_MON_IP: + CEPH_CLUSTER_FSID: + + OPENSTACK_IMAGENAME: mon-0-nd + DISK_SIZE: 10G + # Ceph info + HOSTNAME: mon-0 + CEPH_MON: + ceph-osd-0-openstack: + <<: *common-config + OPENSTACK_IMAGENAME: osd-0 + DISK_SIZE: 7G + # ceph info + HOSTNAME: osd-0 + CEPH_OSD: + CEPH_OSD_STORAGE_DEV: /dev/vdb + ceph-osd-1-openstack: + <<: *common-config + OPENSTACK_IMAGENAME: osd-1 + DISK_SIZE: 7G + # ceph info + HOSTNAME: osd-1 + + CEPH_OSD: + CEPH_OSD_STORAGE_DEV: /dev/vdb -- cgit v1.2.1