Browse Source

Bug 1553576 - Change the self_hostname to ${hostname} in openshift-ansible

See also:
Bug 1548720 - fluent-plugin-secure-forward couldn't read the Environment ${HOSTNAME}
https://github.com/openshift/origin-aggregated-logging/pull/988
Noriko Hosoi 7 năm trước cách đây
mục cha
commit
3719792fe0

+ 1 - 1
roles/openshift_logging_fluentd/files/2.x/secure-forward.conf

@@ -1,7 +1,7 @@
 # <store>
 # @type secure_forward
 
-# self_hostname ${HOSTNAME}
+# self_hostname ${hostname}
 # shared_key <SECRET_STRING>
 
 # secure yes

+ 1 - 1
roles/openshift_logging_fluentd/files/5.x/secure-forward.conf

@@ -1,7 +1,7 @@
 # <store>
 # @type secure_forward
 
-# self_hostname ${HOSTNAME}
+# self_hostname ${hostname}
 # shared_key <SECRET_STRING>
 
 # secure yes

+ 2 - 2
roles/openshift_logging_fluentd/templates/2.x/fluent.conf.j2

@@ -18,7 +18,7 @@
   @type secure_forward
   @label @INGRESS
 
-  self_hostname ${HOSTNAME}
+  self_hostname ${hostname}
   bind 0.0.0.0
   port {{openshift_logging_fluentd_aggregating_port}}
 
@@ -62,7 +62,7 @@
   <match **>
     @type secure_forward
 
-    self_hostname ${HOSTNAME}
+    self_hostname ${hostname}
     shared_key {{openshift_logging_fluentd_shared_key}}
 
     secure {{openshift_logging_fluentd_aggregating_secure}}

+ 2 - 2
roles/openshift_logging_fluentd/templates/5.x/fluent.conf.j2

@@ -18,7 +18,7 @@
   @type secure_forward
   @label @INGRESS
 
-  self_hostname ${HOSTNAME}
+  self_hostname ${hostname}
   bind 0.0.0.0
   port {{openshift_logging_fluentd_aggregating_port}}
 
@@ -62,7 +62,7 @@
   <match **>
     @type secure_forward
 
-    self_hostname ${HOSTNAME}
+    self_hostname ${hostname}
     shared_key {{openshift_logging_fluentd_shared_key}}
 
     secure {{openshift_logging_fluentd_aggregating_secure}}

+ 1 - 1
roles/openshift_logging_mux/files/2.x/secure-forward.conf

@@ -1,7 +1,7 @@
 # <store>
 # @type secure_forward
 
-# self_hostname ${HOSTNAME}
+# self_hostname ${hostname}
 # shared_key <SECRET_STRING>
 
 # secure yes

+ 1 - 1
roles/openshift_logging_mux/files/5.x/secure-forward.conf

@@ -1,7 +1,7 @@
 # <store>
 # @type secure_forward
 
-# self_hostname ${HOSTNAME}
+# self_hostname ${hostname}
 # shared_key <SECRET_STRING>
 
 # secure yes