diff options
author | Patrick Darley <patrick.darley@codethink.co.uk> | 2015-01-04 19:18:22 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-08-23 06:10:43 +0000 |
commit | 2b5e86290672926182cd4a592884188654635bc5 (patch) | |
tree | 635ba996973479514ea4c3c3b37e83ca40e32999 /clusters | |
parent | c6b6225e4f5872ea749fde416bca8e6b89cb5424 (diff) | |
download | definitions-2b5e86290672926182cd4a592884188654635bc5.tar.gz |
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
Diffstat (limited to 'clusters')
-rw-r--r-- | clusters/example-ceph-cluster-on-openstack.morph | 57 |
1 files changed, 57 insertions, 0 deletions
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://<BASEROCK_OPENSTACK_SERVER_IP>: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_MON_IP> + CEPH_CLUSTER_FSID: <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 |