From cd5b70742bf3b92fbf8ff1d72f68195318a608c7 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Wed, 16 Mar 2016 15:17:33 -0400 Subject: [PATCH 1/2] Add $plugins variable to sonarqube::params so plugins can be created using hiera data. Updated documentation to reflect this. --- README.md | 14 ++++++++++++++ manifests/params.pp | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index edf55aaa..ba5d43d6 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,20 @@ The `sonarqube::plugin` defined type can be used to install SonarQube plugins. N version => '2.10', notify => Service['sonar'], } + +Plugins can also be installed in bulk using hiera: + + --- + sonarqube::params::plugins: + sonar-findbugs-plugin: + version: 3.3 + sonar-javascript-plugin: + version: 2.11 + groupid: org.sonarsource.javascript + +And called in puppet using the same defined type, making sure you `include sonarqube::params` + + sonarqube::plugin { $sonarqube::params::plugins: } ## Security Configuration diff --git a/manifests/params.pp b/manifests/params.pp index c7160a1f..bdfa8a7a 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,5 +1,5 @@ # Class: sonarqube::params -class sonarqube::params { +class sonarqube::params ($plugins) { # calculate in what folder is the binary to use for this architecture $arch1 = $::kernel ? { From 5b95e7f9439a6a9affa721f0a972f1c55b15a18b Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Wed, 16 Mar 2016 15:17:33 -0400 Subject: [PATCH 2/2] Add $plugins variable to sonarqube::params so plugins can be created using hiera data. Updated documentation to reflect this. --- manifests/params.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index bdfa8a7a..225a2189 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,5 +1,5 @@ # Class: sonarqube::params -class sonarqube::params ($plugins) { +class sonarqube::params ($plugins={}) { # calculate in what folder is the binary to use for this architecture $arch1 = $::kernel ? {