]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Drop a update-motd.d fragment for monitors so when the user/admin logs into a monitor... 59/head
authorJimmy Tang <jcftang@gmail.com>
Sat, 22 Mar 2014 14:57:22 +0000 (14:57 +0000)
committerJimmy Tang <jcftang@gmail.com>
Sat, 22 Mar 2014 14:57:22 +0000 (14:57 +0000)
roles/mon/files/precise/92-ceph [new file with mode: 0644]
roles/mon/tasks/main.yml

diff --git a/roles/mon/files/precise/92-ceph b/roles/mon/files/precise/92-ceph
new file mode 100644 (file)
index 0000000..a424bc1
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+echo -n "Ceph state is: "
+/usr/bin/ceph health
+echo ""
index 3038c32fb8e65f28f7f72d60256c9b80f9a7e0ef..007f4710511f973c2c675825a68dccfdf68ec091 100644 (file)
@@ -40,3 +40,7 @@
     - /var/lib/ceph/bootstrap-osd/ceph.keyring # this handles the non-colocation case
     - /var/lib/ceph/bootstrap-mds/ceph.keyring
     - /etc/ceph/keyring.radosgw.gateway
+
+- name: Drop in a motd script to report status when logging in
+  copy: src=precise/92-ceph dest=/etc/update-motd.d/92-ceph owner=root group=root mode=0755
+  when: ansible_distribution_release == 'precise'