{"host": "kafka-main2007.codfw.wmnet", "state": "core_diff", "description": "Differences to core resources", "diff": {"full": {"total": 2972, "only_in_self": [], "only_in_other": [], "resource_diffs": [{"resource": "File[/etc/profile.d/kafka.sh]", "content": "--- /etc/profile.d/kafka.sh.orig\n+++ /etc/profile.d/kafka.sh\n@@ -3,5 +3,6 @@\n # These environment variables are used by /usr/local/bin/kafka\n # to automatically set common kafka CLI options.\n export KAFKA_ZOOKEEPER_URL=conf2004.codfw.wmnet,conf2005.codfw.wmnet,conf2006.codfw.wmnet/kafka/main-codfw\n-export KAFKA_BOOTSTRAP_SERVERS=kafka-main2006.codfw.wmnet:9092,kafka-main2007.codfw.wmnet:9092,kafka-main2008.codfw.wmnet:9092,kafka-main2009.codfw.wmnet:9092,kafka-main2010.codfw.wmnet:9092\n+export KAFKA_BOOTSTRAP_SERVERS=\n+export KAFKA_BOOTSTRAP_TLS_SERVERS=\n export KAFKA_JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64"}, {"resource": "File[/usr/local/bin/kafka]", "content": "--- /usr/local/bin/kafka.orig\n+++ /usr/local/bin/kafka\n@@ -23,13 +23,14 @@\n $commands\n \n Environment Variables:\n-  KAFKA_JAVA_HOME         - Value of JAVA_HOME to use for invoking Kafka commands.\n-  KAFKA_ZOOKEEPER_URL     - If this is set, any commands that take a --zookeeper\n-                            flag will be given this value.\n-  KAFKA_BOOTSTRAP_SERVERS - If this is set, any commands that take a --broker-list or\n-                            --bootstrap-server flag will be given this value.\n-                            Also any command that take a --authorizer-properties\n-                            will get the correct zookeeper.connect value.\n+  KAFKA_JAVA_HOME             - Value of JAVA_HOME to use for invoking Kafka commands.\n+  KAFKA_ZOOKEEPER_URL         - If this is set, any commands that take a --zookeeper\n+                                flag will be given this value.\n+  KAFKA_BOOTSTRAP_SERVERS     - If this is set, any commands that take a --broker-list or\n+                                --bootstrap-server flag will be given this value.\n+                                Also any command that take a --authorizer-properties\n+                                will get the correct zookeeper.connect value.\n+  KAFKA_BOOTSTRAP_TLS_SERVERS - Used when mTLS is needed.\n \n \"\n \n@@ -61,7 +62,11 @@\n # also been passed in as a CLI arg.  This will be included\n # in command functions that take a --bootstrap-server argument.\n if [ -n \"${KAFKA_BOOTSTRAP_SERVERS}\" ] && ! grep -q -- --bootstrap-server<<<\"$@\"; then\n-    BOOTSTRAP_SERVER_OPT=\"--bootstrap-server ${KAFKA_BOOTSTRAP_SERVERS}\"\n+    if [ \"$(id -u)\" = \"0\" ]; then\n+        BOOTSTRAP_SERVER_OPT=\"--bootstrap-server ${KAFKA_BOOTSTRAP_TLS_SERVERS}\"\n+    else\n+        BOOTSTRAP_SERVER_OPT=\"--bootstrap-server ${KAFKA_BOOTSTRAP_SERVERS}\"\n+    fi\n fi\n \n # Each of these lists signifies that either --broker-list or --bootstrap-server"}], "perc_changed": "0.07%"}, "core": {"total": 2972, "only_in_self": [], "only_in_other": [], "resource_diffs": [{"resource": "File[/etc/profile.d/kafka.sh]", "content": "--- /etc/profile.d/kafka.sh.orig\n+++ /etc/profile.d/kafka.sh\n@@ -3,5 +3,6 @@\n # These environment variables are used by /usr/local/bin/kafka\n # to automatically set common kafka CLI options.\n export KAFKA_ZOOKEEPER_URL=conf2004.codfw.wmnet,conf2005.codfw.wmnet,conf2006.codfw.wmnet/kafka/main-codfw\n-export KAFKA_BOOTSTRAP_SERVERS=kafka-main2006.codfw.wmnet:9092,kafka-main2007.codfw.wmnet:9092,kafka-main2008.codfw.wmnet:9092,kafka-main2009.codfw.wmnet:9092,kafka-main2010.codfw.wmnet:9092\n+export KAFKA_BOOTSTRAP_SERVERS=\n+export KAFKA_BOOTSTRAP_TLS_SERVERS=\n export KAFKA_JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64"}, {"resource": "File[/usr/local/bin/kafka]", "content": "--- /usr/local/bin/kafka.orig\n+++ /usr/local/bin/kafka\n@@ -23,13 +23,14 @@\n $commands\n \n Environment Variables:\n-  KAFKA_JAVA_HOME         - Value of JAVA_HOME to use for invoking Kafka commands.\n-  KAFKA_ZOOKEEPER_URL     - If this is set, any commands that take a --zookeeper\n-                            flag will be given this value.\n-  KAFKA_BOOTSTRAP_SERVERS - If this is set, any commands that take a --broker-list or\n-                            --bootstrap-server flag will be given this value.\n-                            Also any command that take a --authorizer-properties\n-                            will get the correct zookeeper.connect value.\n+  KAFKA_JAVA_HOME             - Value of JAVA_HOME to use for invoking Kafka commands.\n+  KAFKA_ZOOKEEPER_URL         - If this is set, any commands that take a --zookeeper\n+                                flag will be given this value.\n+  KAFKA_BOOTSTRAP_SERVERS     - If this is set, any commands that take a --broker-list or\n+                                --bootstrap-server flag will be given this value.\n+                                Also any command that take a --authorizer-properties\n+                                will get the correct zookeeper.connect value.\n+  KAFKA_BOOTSTRAP_TLS_SERVERS - Used when mTLS is needed.\n \n \"\n \n@@ -61,7 +62,11 @@\n # also been passed in as a CLI arg.  This will be included\n # in command functions that take a --bootstrap-server argument.\n if [ -n \"${KAFKA_BOOTSTRAP_SERVERS}\" ] && ! grep -q -- --bootstrap-server<<<\"$@\"; then\n-    BOOTSTRAP_SERVER_OPT=\"--bootstrap-server ${KAFKA_BOOTSTRAP_SERVERS}\"\n+    if [ \"$(id -u)\" = \"0\" ]; then\n+        BOOTSTRAP_SERVER_OPT=\"--bootstrap-server ${KAFKA_BOOTSTRAP_TLS_SERVERS}\"\n+    else\n+        BOOTSTRAP_SERVER_OPT=\"--bootstrap-server ${KAFKA_BOOTSTRAP_SERVERS}\"\n+    fi\n fi\n \n # Each of these lists signifies that either --broker-list or --bootstrap-server"}], "perc_changed": "0.07%"}, "main": {"total": 2972, "only_in_self": [], "only_in_other": [], "resource_diffs": [{"resource": "File[/etc/profile.d/kafka.sh]", "content": "--- /etc/profile.d/kafka.sh.orig\n+++ /etc/profile.d/kafka.sh\n@@ -3,5 +3,6 @@\n # These environment variables are used by /usr/local/bin/kafka\n # to automatically set common kafka CLI options.\n export KAFKA_ZOOKEEPER_URL=conf2004.codfw.wmnet,conf2005.codfw.wmnet,conf2006.codfw.wmnet/kafka/main-codfw\n-export KAFKA_BOOTSTRAP_SERVERS=kafka-main2006.codfw.wmnet:9092,kafka-main2007.codfw.wmnet:9092,kafka-main2008.codfw.wmnet:9092,kafka-main2009.codfw.wmnet:9092,kafka-main2010.codfw.wmnet:9092\n+export KAFKA_BOOTSTRAP_SERVERS=\n+export KAFKA_BOOTSTRAP_TLS_SERVERS=\n export KAFKA_JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64"}, {"resource": "File[/usr/local/bin/kafka]", "content": "--- /usr/local/bin/kafka.orig\n+++ /usr/local/bin/kafka\n@@ -23,13 +23,14 @@\n $commands\n \n Environment Variables:\n-  KAFKA_JAVA_HOME         - Value of JAVA_HOME to use for invoking Kafka commands.\n-  KAFKA_ZOOKEEPER_URL     - If this is set, any commands that take a --zookeeper\n-                            flag will be given this value.\n-  KAFKA_BOOTSTRAP_SERVERS - If this is set, any commands that take a --broker-list or\n-                            --bootstrap-server flag will be given this value.\n-                            Also any command that take a --authorizer-properties\n-                            will get the correct zookeeper.connect value.\n+  KAFKA_JAVA_HOME             - Value of JAVA_HOME to use for invoking Kafka commands.\n+  KAFKA_ZOOKEEPER_URL         - If this is set, any commands that take a --zookeeper\n+                                flag will be given this value.\n+  KAFKA_BOOTSTRAP_SERVERS     - If this is set, any commands that take a --broker-list or\n+                                --bootstrap-server flag will be given this value.\n+                                Also any command that take a --authorizer-properties\n+                                will get the correct zookeeper.connect value.\n+  KAFKA_BOOTSTRAP_TLS_SERVERS - Used when mTLS is needed.\n \n \"\n \n@@ -61,7 +62,11 @@\n # also been passed in as a CLI arg.  This will be included\n # in command functions that take a --bootstrap-server argument.\n if [ -n \"${KAFKA_BOOTSTRAP_SERVERS}\" ] && ! grep -q -- --bootstrap-server<<<\"$@\"; then\n-    BOOTSTRAP_SERVER_OPT=\"--bootstrap-server ${KAFKA_BOOTSTRAP_SERVERS}\"\n+    if [ \"$(id -u)\" = \"0\" ]; then\n+        BOOTSTRAP_SERVER_OPT=\"--bootstrap-server ${KAFKA_BOOTSTRAP_TLS_SERVERS}\"\n+    else\n+        BOOTSTRAP_SERVER_OPT=\"--bootstrap-server ${KAFKA_BOOTSTRAP_SERVERS}\"\n+    fi\n fi\n \n # Each of these lists signifies that either --broker-list or --bootstrap-server"}], "perc_changed": "0.07%"}}}