Puppet module for installing Maestro and related software
First, declare the yum repository
# Use credentials provided by MaestroDev for trial / subscription
class { 'maestro::yumrepo':
username => $maestrodev_username,
password => $maestrodev_password,
}
On the Maestro node, you'll need Maestro and ActiveMQ:
class { 'java': package => 'java-1.6.0-openjdk-devel' }
class { 'maestro::maestro':
admin_password => "admin1",
master_password => "admin1",
db_server_password => "admin1",
db_password => "admin1",
}
# ActiveMQ, with Stomp connector enabled
class { 'activemq': }
class { 'activemq::stomp': }
Package['java'] -> Service['activemq']
Package['java'] -> Service['maestro']
On the agent node(s), install the agent.
class { 'java': package => 'java-1.6.0-openjdk-devel' }
class { 'maestro::agent': }
Package['java'] -> Service['maestro-agent']
(The -devel alternate packaging is only needed if you are developing Java software that will build on the agent. If not, you can use java-1.6.0-openjdk).
You can then proceed to install other software as needed on the nodes - for example Jenkins, Archiva or Sonar on the Maestro node (or standalone nodes if required), and Maven, rake, and CI agents on the agent nodes.
For example, the following installs Archiva, sharing the user database with Maestro:
$jdbc_driver_url = "${repo['url']}/postgresql/postgresql/8.4-702.jdbc3/postgresql-8.4-702.jdbc3.jar"
$archiva_jdbc = {
url => "jdbc:postgresql://localhost/maestro",
driver => "org.postgresql.Driver",
username => "maestro",
password => $maestro_db_password,
}
$repo = {
url => 'https://repo.maestrodev.com/archiva/repository/all/',
username => '...',
password => '...',
}
class { archiva:
repo => $repo,
version => "1.4-M1-maestro-3.4.3.1",
port => 8082,
archiva_jdbc => $archiva_jdbc,
users_jdbc => $archiva_jdbc,
jdbc_driver_url => $jdbc_driver_url,
require => Postgres::Createdb[maestro],
}
Other modules describe how to install that particular package.
bundle install bundle exec rake spec
vagrant up vagrant provision (to apply changes as tweaking)
Plugins can be installed from the Maestro Web UI or be automatically installed using the maestro::plugin
definition in Puppet.
For example to install some common plugins, add this to the Maestro node.
include maestro::plugins