This patch introduces calamari_debug option which will turn on debugging
for calamari before initializing and running it.
Signed-off-by: Boris Ranto <branto@redhat.com>
# Enable the Calamari-backed REST API on a Monitor
#calamari: false
+# Enable debugging for Calamari
+#calamari_debug: false
+
#############
# OPENSTACK #
#############
# Enable the Calamari-backed REST API on a Monitor
calamari: false
+# Enable debugging for Calamari
+calamari_debug: false
+
#############
# OPENSTACK #
#############
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