]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
a playbook to add an OSD to an existing cluster 550/head
authorAndrew Schoen <aschoen@redhat.com>
Thu, 18 Feb 2016 15:39:18 +0000 (09:39 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 18 Feb 2016 15:52:26 +0000 (09:52 -0600)
The playbook uses the ceph-fetch-keys role to connect to the mons and
retrieve keys for the OSD bootstrapping. Ensure that all your mons for
the cluster you're adding the OSD to is in your inventory in the mons
group. This ensures that a proper ceph.conf is created for the new OSD.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
osd-configure.yml [new file with mode: 0644]

diff --git a/osd-configure.yml b/osd-configure.yml
new file mode 100644 (file)
index 0000000..a193dca
--- /dev/null
@@ -0,0 +1,18 @@
+---
+# This playbook is used to add a new OSD to
+# an existing cluster without the need for running
+# the ceph-common or ceph-mon role again against all
+# of the existing monitors.
+#
+# Ensure that all monitors are present in the mons
+# group in your inventory so that the ceph.conf is
+# created correctly for the new OSD.
+- hosts: mons
+  become: True
+  roles:
+    - ceph-fetch-keys
+
+- hosts: osds
+  become: True
+  roles:
+  - ceph-osd