From 2b5e86290672926182cd4a592884188654635bc5 Mon Sep 17 00:00:00 2001 From: Patrick Darley Date: Sun, 4 Jan 2015 19:18:22 +0000 Subject: Update ceph.configure to facilitate cluster deployments The changes include: - Updating the osd script for osd activation on first boot. - Allow the systemd units to run on boots subsequent to the first. - Adjust the disk location in the osd deployment script. - Add option to add client.admin.keyring at deploy time. Being deployed with key allows each node of the cluster administrative privelage from firstboot. - Allow OSD storage device location to be set at deploy time. Change-Id: Ibfd4db24b0ad946c551a8bdfe7d60d10a9ea687f --- clusters/example-ceph-cluster-on-openstack.morph | 57 ++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 clusters/example-ceph-cluster-on-openstack.morph (limited to 'clusters') diff --git a/clusters/example-ceph-cluster-on-openstack.morph b/clusters/example-ceph-cluster-on-openstack.morph new file mode 100644 index 00000000..717b5b31 --- /dev/null +++ b/clusters/example-ceph-cluster-on-openstack.morph @@ -0,0 +1,57 @@ +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: yes + 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