diff --git a/manifests/init.pp b/manifests/init.pp index 3a96b781..f9988c5f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -21,7 +21,7 @@ $home = undef, $host = undef, $port = 9000, - $portAjp = -1, + $portajp = -1, $download_url = 'https://sonarsource.bintray.com/Distribution/sonarqube', $download_dir = '/usr/local/src', $context_path = '/', @@ -136,7 +136,8 @@ -> # ===== Install SonarQube ===== exec { 'untar': - command => "unzip -o ${tmpzip} -d ${installroot} && chown -R ${user}:${group} ${installroot}/${package_name}-${version} && chown -R ${user}:${group} ${real_home}", + command => "unzip -o ${tmpzip} -d ${installroot} && chown -R \ + ${user}:${group} ${installroot}/${package_name}-${version} && chown -R ${user}:${group} ${real_home}", creates => "${installroot}/${package_name}-${version}/bin", notify => Service['sonarqube'], } diff --git a/templates/sonar.properties.erb b/templates/sonar.properties.erb index c3a0e1df..8c702408 100644 --- a/templates/sonar.properties.erb +++ b/templates/sonar.properties.erb @@ -16,7 +16,7 @@ sonar.web.host: <%= @host %> #sonar.web.host: 0.0.0.0 <% end -%> sonar.web.port: <%= @port %> -sonar.ajp.port: <%= @portAjp %> +sonar.ajp.port: <%= @portajp %> <% if has_variable?('context_path') -%> sonar.web.context: <%= @context_path %> <% end -%>