system-config/modules/openstack_project/manifests/jenkins_dev.pp
Khai Do efe3323255 add nodepool to jenkins-dev server
We are co-locating nodepool on jenkins-dev to allow us to test
jenkins upgrades.  This dev nodepool is configured to only spin
up machines in one AZ on hpcloud.

Change-Id: I73f6d4373fa79fec8845d7d81fa1235f7fe15482
2013-12-03 18:21:31 +00:00

61 lines
2.0 KiB
Puppet

# == Class: openstack_project::jenkins_dev
#
class openstack_project::jenkins_dev (
$jenkins_ssh_private_key = '',
$sysadmins = [],
$mysql_root_password,
$mysql_password,
$nodepool_ssh_private_key = '',
$jenkins_api_user ='',
$jenkins_api_key ='',
$jenkins_credentials_id ='',
$hpcloud_username ='',
$hpcloud_password ='',
$hpcloud_project ='',
) {
include openstack_project
class { 'openstack_project::server':
iptables_public_tcp_ports => [80, 443],
sysadmins => $sysadmins,
}
include bup
bup::site { 'rs-ord':
backup_user => 'bup-jenkins-dev',
backup_server => 'ci-backup-rs-ord.openstack.org',
}
class { '::jenkins::master':
vhost_name => 'jenkins-dev.openstack.org',
serveradmin => 'webmaster@openstack.org',
logo => 'openstack.png',
ssl_cert_file => '/etc/ssl/certs/ssl-cert-snakeoil.pem',
ssl_key_file => '/etc/ssl/private/ssl-cert-snakeoil.key',
ssl_chain_file => '',
jenkins_ssh_private_key => $jenkins_ssh_private_key,
jenkins_ssh_public_key => $openstack_project::jenkins_dev_ssh_key,
}
file { '/etc/default/jenkins':
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet:///modules/openstack_project/jenkins/jenkins.default',
}
class { '::nodepool':
mysql_password => 'mysql_password',
mysql_root_password => 'mysql_root_password',
nodepool_ssh_private_key => 'nodepool_ssh_private_key',
nodepool_template => 'nodepool-dev.yaml.erb',
sysadmins => 'sysadmins',
jenkins_api_user => 'jenkins_api_user',
jenkins_api_key => 'jenkins_api_key',
jenkins_credentials_id => 'jenkins_credentials_id',
hpcloud_username => 'hpcloud_username',
hpcloud_password => 'hpcloud_password',
hpcloud_project => 'hpcloud_project',
}
}