Installs Bamboo on a server, with a local Postgres instance. By default, you get Bamboo 5.7.0, Postgres 9.3 and Java 1.7.
This module will install Bamboo 5.7 on your server. It also installs Postgres 9.3, and creates a database and user for you. Currently, it does not configure Bamboo to point to the database - you will need to do that yourself.
Mandatory requirements: nanliu/staging puppetlabs/stdlib
Optional requirements: puppetlabs/postgresql puppetlabs/java
Note that the default configuration of the module makes used of all these requirements.
Do not define your bamboo user separately, use this module to do it.
class { '::bamboo':
username => 'bamboo',
pass_hash => '$6$XZ3WAndARKKP9d$gv8gsLeoaaKuWD5pPF86V3Y8lb6OdhmEntFrpZeCf2NYX4pnRs5PrRdjcVOGVzeqrHLaZoUVKXNUEpjIr8rcP/',
bamboo_version => '5.7.0',
bamboo_home => '/home/bamboo/data',
bamboo_data => '/var/bamboo/data',
java_manage => true,
db_manage => true,
db_name => 'bamboo_db',
db_pass => 'awesomepass',
}
The following parameters are valid for bamboo:
username
The username for the bamboo user. Default is bamboo
pass_hash
Password hash for the bamboo user. Use the mkpassword -m sha-512 command to set this. eg
$6$XZ3WAndARKKP9d$gv8gsLeoaaKuWD5pPF86V3Y8lb6OdhmEntFrpZeCf2NYX4pnRs5PrRdjcVOGVzeqrHLaZoUVKXNUEpjIr8rcP/
bamboo_version
Version of Bamboo to install. Default is 5.7.0
bamboo_home
Path to the directory bamboo should use for installing the software. Default is /opt/atlassian/bamboo
bamboo_data
Path to the directory bamboo will store it's data in. Default is /var/atlassian/application-data/bamboo
bamboo_url
The url to the bamboo download.
db_manage
Specify whether or not puppet should manage a database. Default is true
.
db_type
The type of database to install. Currently only postgres is supported, but there are plans to add mysql.
db_name
The name of the database for bamboo to use.
db_user
The database user for bamboo.
db_pass
The database password for bamboo.
java_manage
Specify whether or not puppet should manage java (jdk/jre).
java_distribution
Specify to use the jdk, or jre.
java_version
The version of java to install. Default will use the system default.
java_package
Then name of the java package to install.
service_manage
Specify whether or not puppet will manage the bamboo service.
service_ensure
Specify whether the service should be running or stopped.
service_enable
Specify whether the service should start at boot time.
service_name
The name of the bamboo service.
This module can only install a Postgresql backend. The groundwork is there if you want a MySQL backend though - reach out and let us know!
bundle rake install
bundle rake spec
or
bundle rake spec_standalone
Pull requests are welcome. Please use a feature branch.