Browse Source

Merge pull request #3237 from ewolinetz/logging_fix_fluentd_ops_host

Adding bool filter to ensure that we correctly set ops host for fluentd
Eric Wolinetz 8 years ago
parent
commit
2683c3de24
1 changed files with 2 additions and 2 deletions
  1. 2 2
      roles/openshift_logging/tasks/install_fluentd.yaml

+ 2 - 2
roles/openshift_logging/tasks/install_fluentd.yaml

@@ -1,8 +1,8 @@
 ---
-- set_fact: fluentd_ops_host={{ (openshift_logging_use_ops) | ternary(openshift_logging_es_ops_host, openshift_logging_es_host) }}
+- set_fact: fluentd_ops_host={{ (openshift_logging_use_ops | bool) | ternary(openshift_logging_es_ops_host, openshift_logging_es_host) }}
   check_mode: no
 
-- set_fact: fluentd_ops_port={{ (openshift_logging_use_ops) | ternary(openshift_logging_es_ops_port, openshift_logging_es_port) }}
+- set_fact: fluentd_ops_port={{ (openshift_logging_use_ops | bool) | ternary(openshift_logging_es_ops_port, openshift_logging_es_port) }}
   check_mode: no
 
 - name: Generating Fluentd daemonset