]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Create long_running_cluster role
authorDavid Galloway <dgallowa@redhat.com>
Thu, 31 Aug 2017 23:26:26 +0000 (19:26 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 28 Mar 2018 15:23:40 +0000 (11:23 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
long_running_cluster.yml [new file with mode: 0644]
roles/long_running_cluster/tasks/main.yml [new file with mode: 0644]

diff --git a/long_running_cluster.yml b/long_running_cluster.yml
new file mode 100644 (file)
index 0000000..f9eabf7
--- /dev/null
@@ -0,0 +1,12 @@
+---
+- hosts: long_running_cluster
+  tasks:
+    - name: Pull in vars from common role
+      include_vars: "roles/common/vars/{{ ansible_pkg_mgr }}_systems.yml"
+
+- hosts: long_running_cluster
+  become: true
+  roles:
+    - long_running_cluster
+  handlers:
+    - import_tasks: roles/common/handlers/main.yml
diff --git a/roles/long_running_cluster/tasks/main.yml b/roles/long_running_cluster/tasks/main.yml
new file mode 100644 (file)
index 0000000..0921fcc
--- /dev/null
@@ -0,0 +1,10 @@
+---
+# We only need to install nagios checks on MON nodes
+- name: Check if MON node
+  command: "systemctl status ceph-mon@{{ ansible_hostname }}"
+  ignore_errors: true
+  changed_when: false
+  register: mon_service_status
+
+- import_tasks: nagios.yml
+  when: mon_service_status.rc == 0