瀏覽代碼

Fix auditConfig for non-HA environments

Bug 1447019
Russell Teague 8 年之前
父節點
當前提交
ebb1b751b9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/openshift_master/templates/master.yaml.v1.j2

+ 1 - 1
roles/openshift_master/templates/master.yaml.v1.j2

@@ -44,10 +44,10 @@ assetConfig:
     - {{ cipher_suite }}
 {% endfor %}
 {% endif %}
-{% if openshift_master_ha | bool %}
 {% if openshift.master.audit_config | default(none) is not none and openshift.common.version_gte_3_2_or_1_2 | bool %}
 auditConfig:{{ openshift.master.audit_config | to_padded_yaml(level=1) }}
 {% endif %}
+{% if openshift_master_ha | bool %}
 controllerLeaseTTL: {{ openshift.master.controller_lease_ttl | default('30') }}
 {% endif %}
 {% if openshift.common.version_gte_3_3_or_1_3 | bool %}