Skip to content

Commit

Permalink
Merge pull request #1798 from jrha/cleanup-metaconfig-kafka
Browse files Browse the repository at this point in the history
ncm-metaconfig: kafka: Fix wrapping and indentation in pan
  • Loading branch information
jrha authored Dec 16, 2024
2 parents 68ecc98 + c4830b4 commit c4440ef
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions ncm-metaconfig/src/main/metaconfig/kafka/tests/profiles/config.pan
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,39 @@ variable KAFKA_ZOOKEEPER_SERVERS = "zk1.cluster.log,zk2.cluster.log";
variable KAFKA_INTERNAL_LISTENER ?= format("INTERNAL://%s.%s.log:%d",
HOSTNAME,
CLUSTER_NAME,
KAFKA_INTERNAL_LISTENING_PORT);
KAFKA_INTERNAL_LISTENING_PORT,
);

variable KAFKA_EXTERNAL_LISTENER ?= format("EXTERNAL://%s.%s.os:%d",
HOSTNAME,
CLUSTER_NAME,
KAFKA_EXTERNAL_LISTENING_PORT);
KAFKA_EXTERNAL_LISTENING_PORT,
);

variable KAFKA_EXTERNAL_LOG_LISTENER ?= format("EXTERNAL_LOG://%s.%s.log:%d",
HOSTNAME,
CLUSTER_NAME,
KAFKA_EXTERNAL_LOG_LISTENING_PORT);
KAFKA_EXTERNAL_LOG_LISTENING_PORT,
);

# the kafka service.properties
prefix "/software/components/metaconfig/services/{/etc/kafka/server.properties}/contents";

"advertised.listeners" = format("%s,%s,%s",
KAFKA_INTERNAL_LISTENER,
KAFKA_EXTERNAL_LISTENER,
KAFKA_EXTERNAL_LOG_LISTENER);
KAFKA_EXTERNAL_LOG_LISTENER,
);
"broker.id" = KAFKA_BROKER_ID;
"listeners" = format("%s,%s,%s",
KAFKA_INTERNAL_LISTENER,
KAFKA_EXTERNAL_LISTENER,
KAFKA_EXTERNAL_LOG_LISTENER);
KAFKA_EXTERNAL_LOG_LISTENER,
);
"listener.security.protocol.map" = format("EXTERNAL:%s,INTERNAL:%s,EXTERNAL_LOG:%s",
KAFKA_INTERNAL_LISTENING_PROTOCOL,
KAFKA_EXTERNAL_LISTENING_PROTOCOL,
KAFKA_EXTERNAL_LOG_LISTENING_PROTOCOL
KAFKA_EXTERNAL_LOG_LISTENING_PROTOCOL,
);
"inter.broker.listener.name" = "INTERNAL";
"zookeeper.connect" = KAFKA_ZOOKEEPER_SERVERS;
Expand Down

0 comments on commit c4440ef

Please sign in to comment.