From 26bfef4107ec1b02a70ffa049fcdd59799e3906e Mon Sep 17 00:00:00 2001 From: John Spray Date: Fri, 21 Sep 2018 11:00:18 +0100 Subject: [PATCH] Remove Calamari-related pieces ...with the exception of the purge operation, since removing Calamari would still be useful for an old cluster. Signed-off-by: John Spray --- group_vars/mons.yml.sample | 6 ------ roles/ceph-mon/defaults/main.yml | 6 ------ roles/ceph-mon/tasks/calamari.yml | 30 ------------------------------ roles/ceph-mon/tasks/main.yml | 4 ---- 4 files changed, 46 deletions(-) delete mode 100644 roles/ceph-mon/tasks/calamari.yml diff --git a/group_vars/mons.yml.sample b/group_vars/mons.yml.sample index cddd45f70..b1ab316f2 100644 --- a/group_vars/mons.yml.sample +++ b/group_vars/mons.yml.sample @@ -31,12 +31,6 @@ dummy: # - nodelete # - nosizechange -# Enable the Calamari-backed REST API on a Monitor -#calamari: false - -# Enable debugging for Calamari -#calamari_debug: false - ############### # CRUSH RULES # diff --git a/roles/ceph-mon/defaults/main.yml b/roles/ceph-mon/defaults/main.yml index a52422c11..8b19c9bdb 100644 --- a/roles/ceph-mon/defaults/main.yml +++ b/roles/ceph-mon/defaults/main.yml @@ -23,12 +23,6 @@ secure_cluster_flags: - nodelete - nosizechange -# Enable the Calamari-backed REST API on a Monitor -calamari: false - -# Enable debugging for Calamari -calamari_debug: false - ############### # CRUSH RULES # diff --git a/roles/ceph-mon/tasks/calamari.yml b/roles/ceph-mon/tasks/calamari.yml deleted file mode 100644 index bf42f2aa3..000000000 --- a/roles/ceph-mon/tasks/calamari.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -- name: test if calamari-server is installed - command: rpm -q --qf "%{VERSION}\n" calamari-server - args: - warn: no - ignore_errors: true - check_mode: no - changed_when: false - register: calamari_server_rpm_state - -- name: install calamari server - package: - name: calamari-server - state: "{{ 'latest' if (calamari_server_rpm_state.stdout.split('.')[0] is version(ceph_rhcs_version, '<') and not calamari_server_rpm_state.failed) else (upgrade_ceph_packages|bool) | ternary('latest','present') }}" - tags: - - package-install - -- name: increase calamari logging level when debug is on - ini_file: - dest: /etc/calamari/calamari.conf - section: "{{ item }}" - option: log_level - value: DEBUG - with_items: - - cthulhu - - calamari_web - when: calamari_debug - -- name: initialize the calamari server api - command: calamari-ctl initialize diff --git a/roles/ceph-mon/tasks/main.yml b/roles/ceph-mon/tasks/main.yml index 1b212f77d..426964dda 100644 --- a/roles/ceph-mon/tasks/main.yml +++ b/roles/ceph-mon/tasks/main.yml @@ -38,7 +38,3 @@ - name: include set_osd_pool_default_pg_num.yml include: set_osd_pool_default_pg_num.yml - -- name: include calamari.yml - include: calamari.yml - when: calamari