Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 4d5e6f4

Browse files
committed
Add elastic search configuration parameters
1 parent e267bac commit 4d5e6f4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

manifests/init.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
$profile = false,
5050
$web_java_opts = undef,
5151
$search_java_opts = undef,
52+
$search_host = undef,
53+
$search_port = undef,
5254
$config = undef,
5355
) inherits sonarqube::params {
5456
validate_absolute_path($download_dir)

templates/sonar.properties.erb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ sonar.web.https.keystoreType=<%= @https['keystoretype'] %>
122122
sonar.search.javaOpts=<%= @search_java_opts %>
123123
<% end -%>
124124

125+
<% if @search_port -%>
126+
sonar.search.port=<%= @search_port %>
127+
<% else -%>
128+
#sonar.search.port=9001
129+
<% end -%>
130+
131+
<% if @search_host -%>
132+
sonar.search.host=<%= @search_host %>
133+
<% else -%>
134+
sonar.search.host=127.0.0.1
135+
<% end -%>
136+
125137
#-----------------------------------------------------------------------
126138
# DATABASE
127139
#

0 commit comments

Comments
 (0)