Browse Source

Merge pull request #1462 from jkhelil/configure_log_level_from_cli

configure debug_level for master and node from cli
Brenton Leanhardt 9 years ago
parent
commit
f8e0a3aded

+ 5 - 0
playbooks/common/openshift-master/config.yml

@@ -28,6 +28,11 @@
                                                         | default([]))
                                        | oo_collect('openshift.common.hostname')
                                        | default(none, true) }}"
+  
+  - set_fact:
+      openshift_master_debug_level: "{{ lookup('oo_option', 'openshift_master_debug_level') | default(openshift.common.debug_level, true) }}"
+    when: openshift_master_debug_level is not defined
+
   roles:
   - openshift_facts
   post_tasks:

+ 4 - 0
playbooks/common/openshift-node/config.yml

@@ -1,6 +1,10 @@
 ---
 - name: Gather and set facts for node hosts
   hosts: oo_nodes_to_config
+  pre_tasks:
+  - set_fact:
+      openshift_node_debug_level: "{{ lookup('oo_option', 'openshift_node_debug_level') | default(openshift.common.debug_level, true) }}"
+    when: openshift_node_debug_level is not defined
   roles:
   - openshift_facts
   tasks: