diff options
author | ewolinetz <ewolinet@redhat.com> | 2017-01-13 16:37:27 -0600 |
---|---|---|
committer | ewolinetz <ewolinet@redhat.com> | 2017-01-13 16:37:27 -0600 |
commit | 9cf70bb6991df874350ea0f5c97da26bb6757edb (patch) | |
tree | ce174fcb9e497d67168047fb43cd7b3fe738f92f /roles/openshift_logging/tasks | |
parent | 054c2a9f169c5547458a4e168855aeb4812b5797 (diff) | |
download | openshift-9cf70bb6991df874350ea0f5c97da26bb6757edb.tar.gz openshift-9cf70bb6991df874350ea0f5c97da26bb6757edb.tar.bz2 openshift-9cf70bb6991df874350ea0f5c97da26bb6757edb.tar.xz openshift-9cf70bb6991df874350ea0f5c97da26bb6757edb.zip |
additional comments addressed
Diffstat (limited to 'roles/openshift_logging/tasks')
-rw-r--r-- | roles/openshift_logging/tasks/generate_configmaps.yaml | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/roles/openshift_logging/tasks/generate_configmaps.yaml b/roles/openshift_logging/tasks/generate_configmaps.yaml index f9f9ee79f..b24a7c342 100644 --- a/roles/openshift_logging/tasks/generate_configmaps.yaml +++ b/roles/openshift_logging/tasks/generate_configmaps.yaml @@ -6,16 +6,11 @@ when: es_logging_contents is undefined changed_when: no - - copy: - src: elasticsearch.yml - dest: "{{mktemp.stdout}}/elasticsearch.yml" - when: es_config_contents is undefined - changed_when: no - - - lineinfile: + - template: + src: elasticsearch.yml.j2 dest: "{{mktemp.stdout}}/elasticsearch.yml" - regexp: '^openshift\.operations\.allow_cluster_reader(.)*$' - line: "\nopenshift.operations.allow_cluster_reader: {{openshift_logging_es_ops_allow_cluster_reader | lower}}" + vars: + - allow_cluster_reader: "{{openshift_logging_es_ops_allow_cluster_reader | lower | default('false')}}" when: es_config_contents is undefined changed_when: no |