From 499ee08c949fb56f0b891bde3e4f0892d8de4ec1 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 20 Jun 2013 22:09:09 -0700 Subject: [PATCH] Add support for parameterized gerrit ports. Actually, it's support for parameterized listen_address, but the real thing you want it for is setting the port. Change-Id: If75fedce32f35a8f72c92fc709d5c9e8b2d35235 Reviewed-on: https://review.openstack.org/33925 Reviewed-by: James E. Blair Approved: Jeremy Stanley Reviewed-by: Jeremy Stanley Tested-by: Jenkins --- modules/gerrit/manifests/init.pp | 2 ++ modules/gerrit/templates/gerrit.config.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gerrit/manifests/init.pp b/modules/gerrit/manifests/init.pp index 2eb5f2865e..22e119b5aa 100644 --- a/modules/gerrit/manifests/init.pp +++ b/modules/gerrit/manifests/init.pp @@ -24,6 +24,7 @@ # core_packedgitlimit: # core_packedgitwindowsize: # sshd_threads: +# sshd_listen_address: # httpd_acceptorthreads: # httpd_minthreads: # httpd_maxthreads: @@ -95,6 +96,7 @@ class gerrit( $core_packedgitlimit = '', $core_packedgitwindowsize = '', $sshd_threads = '', + $sshd_listen_address = '*:29418', $httpd_acceptorthreads = '', $httpd_minthreads = '', $httpd_maxthreads = '', diff --git a/modules/gerrit/templates/gerrit.config.erb b/modules/gerrit/templates/gerrit.config.erb index a31582f94a..ae9c8f6420 100644 --- a/modules/gerrit/templates/gerrit.config.erb +++ b/modules/gerrit/templates/gerrit.config.erb @@ -37,7 +37,7 @@ packedGitWindowSize = <%= core_packedgitwindowsize %> <% end -%> [sshd] - listenAddress = *:29418 + listenAddress = <%= sshd_listen_address %> <% if sshd_threads != "" -%> threads = <%= sshd_threads %> <% end -%>