Drop a update-motd.d fragment for monitors so when the user/admin logs into a monitor there is a small notice for the user about the state of the ceph cluster. Works only on ubuntu for now

pull/59/head
Jimmy Tang 2014-03-22 14:57:22 +00:00
parent e6c162167c
commit c3480a588c
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/bin/bash
echo -n "Ceph state is: "
/usr/bin/ceph health
echo ""

View 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'