Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 3.0.0
Start using this module
Add this module to your Puppetfile:
mod 'dsestero-sonarqube', '1.0.1'
Learn more about managing modules with a PuppetfileDocumentation
#sonarqube
####Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with sonarqube
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
##Overview
This is the sonarqube module. It deliver SonarQube (previously known as Sonar), the Open Source platform to manage code quality (see http://www.sonarqube.org/).
##Module Description
The module creates a local sonarqube
mysql db, adds the SonarQube Debian/Ubuntu repository, installs the software, configures logs and db parameters, and enable the service to start at boot.
##Setup
###What sonarqube affects
-
installs packages
openjdk-7-jdk
,mysql-server
andmysql-client
if not yet installed -
creates a new
sonarqube
db (access withsonarqube
/sonarqube
) to be used by the SonarQube software to record the quality metrics -
adds to the system the Debian/Ubuntu repository for SonarQube distribution (creates a file
sonarqube.list
in/etc/apt/sources.list.d
) -
installs the package
sonar
from the newly configured repo -
creates
/var/log/sonar
directory owned bysonar:adm
-
link
/opt/sonar/logs
to the log directory created under/var
-
configures the software by providing username, password, url and driver class name to access the db
-
enable a new service sonar to start at boot and listen for http request on port 9000.
###Setup Requirements
This modules requires the following other modules to be installed:
-
dsestero/java
to install a suitable java development environment -
puppetlabs/mysql
to install mysql db -
puppetlabs/apt
in order to add the SonarQube repository -
puppetlabs/stdlib
to have additional resource type likefile_line
, useful for configuring the software
###Beginning with sonarqube
To install sonarqube as a service with default configuration, it is possible to use a declaration as the following:
include sonarqube
##Usage
At the moment there are no customizations.
##Reference
###Public Classes
sonarqube::sonarqube
: Manages sonarqube
###Private Classes
sonarqube::params
: Specifies the module defaultssonarqube::install
: Installs the module artifactssonarqube::config
: Configures the module artifactssonarqube::service
: Sets up the service
###sonarqube::sonarqube
Installs, configure and sets up a sonarqube service.
##Limitations
At the moment the module targets only OpenJDK on Ubuntu platforms. Specifically, it is tested only on Ubuntu 12.04 64 bit distributions, although probably it will work also on more recent versions and different architectures.
##Development
If you need some feature please send me a (pull) request or send me an email at: dsestero 'at' gmail 'dot' com.
##2015-07-13 - Release - 1.0.1 ###Summary Tested with Puppet 4
##2015-08-27 - Release - 1.0.0 ###Summary Initial release as PuppetForge module.
####Features See the README.markdown
####Bugfixes
####Known bugs
- No known bugs
Dependencies
- dsestero/java (1.x)
- puppetlabs/mysql (3.x)
- puppetlabs/apt (1.x)
- puppetlabs/stdlib (4.x)
Copyright (C) 2015 Dario Sestero Dario Sestero can be contacted at: dsestero 'at' gmail 'dot' com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.