Diego Castro 9 лет назад
Родитель
Сommit
669a91dc9d
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      roles/openshift_facts/library/openshift_facts.py

+ 2 - 1
roles/openshift_facts/library/openshift_facts.py

@@ -317,8 +317,9 @@ def set_fluentd_facts_if_unset(facts):
 
 
     """
     """
     if 'common' in facts:
     if 'common' in facts:
+        deployment_type = facts['common']['deployment_type']
         if 'use_fluentd' not in facts['common']:
         if 'use_fluentd' not in facts['common']:
-            use_fluentd = False
+            use_fluentd = True if deployment_type == 'online' else False    
             facts['common']['use_fluentd'] = use_fluentd
             facts['common']['use_fluentd'] = use_fluentd
     return facts
     return facts