Configures a MySQL instance with a database and user for SonarQube. Provides LWRPs for managing sonar configuration held in the MySQL database.
- See
test/integration/cookbooks/testand.kitchen.ymlfor usage examples - Ensure the correct SonarQube URL is set in the attributes
- The LWRPs will use this to check the status of the server before trying to update any database tables
- Does not install SonarQube in case there are specific needs on your system
- add
sonarqube::defaultto your run list aftersonarqube-mysql::defaultfor a simple installation- remember to override the JDBC connection attributes to point to your MySQL database
- it is necesarry to install and run SonarQube before calling the LWRPs as this populates the initial state of the database
- add
- Does not install MySQL in case there are specific needs on your system
- add
mysql::serverto your run list beforesonarqube-mysql::defaultfor a simple installation
- add
- Does not run
apt::defaulton Ubuntu- add
apt::defaultto your run list before anything else if you're deploying on Ubuntu
- add
-
Recent RuboCop
chef gem install rubocop
Test changes using
chef exec rake
chef exec kitchen verify