Repository: bigtop Updated Branches: refs/heads/master b033f5c16 -> 4747169cc
BIGTOP-2504: Kafka bind interface option (closes #134) Signed-off-by: Kevin W Monroe <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/4747169c Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/4747169c Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/4747169c Branch: refs/heads/master Commit: 4747169ccc3c257820d2e5f4743cfd5c3370b733 Parents: b033f5c Author: Pete Vander Giessen <[email protected]> Authored: Tue Jul 19 16:40:35 2016 -0400 Committer: Kevin W Monroe <[email protected]> Committed: Sat Oct 8 09:31:37 2016 -0500 ---------------------------------------------------------------------- bigtop-deploy/puppet/modules/kafka/manifests/init.pp | 3 ++- bigtop-deploy/puppet/modules/kafka/templates/server.properties | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/4747169c/bigtop-deploy/puppet/modules/kafka/manifests/init.pp ---------------------------------------------------------------------- diff --git a/bigtop-deploy/puppet/modules/kafka/manifests/init.pp b/bigtop-deploy/puppet/modules/kafka/manifests/init.pp index 482b51b..736cfe0 100644 --- a/bigtop-deploy/puppet/modules/kafka/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/kafka/manifests/init.pp @@ -22,9 +22,10 @@ class kafka { } class server( + $bind_addr = undef, $broker_id = "0", $port = "9092", - $zookeeper_connection_string = "localhost:2181" + $zookeeper_connection_string = "localhost:2181", ) { package { 'kafka': http://git-wip-us.apache.org/repos/asf/bigtop/blob/4747169c/bigtop-deploy/puppet/modules/kafka/templates/server.properties ---------------------------------------------------------------------- diff --git a/bigtop-deploy/puppet/modules/kafka/templates/server.properties b/bigtop-deploy/puppet/modules/kafka/templates/server.properties index a30e970..dbda311 100644 --- a/bigtop-deploy/puppet/modules/kafka/templates/server.properties +++ b/bigtop-deploy/puppet/modules/kafka/templates/server.properties @@ -25,7 +25,11 @@ broker.id=<%= @broker_id %> port=<%= @port %> # Hostname the broker will bind to. If not set, the server will bind to all interfaces +<% if @bind_addr.nil? -%> #host.name=localhost +<% else -%> +host.name=<%= @bind_addr %> +<% end -%> # Hostname the broker will advertise to producers and consumers. If not set, it uses the # value for "host.name" if configured. Otherwise, it will use the value returned from
