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

Add ability to specify plugins using hiera data and automatically map them to the plugin call #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
@@ -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 ? {
Expand Down