e35a6e7c73
Put jenkins_master into jenkins::master and jenkins_job_builder into jenkins::job_builder and jenkins_slave into jenkins::slave. Change-Id: Icb0e3071894730c17d8f36f49e9d34979d9c568e Reviewed-on: https://review.openstack.org/11249 Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
38 lines
1.0 KiB
Puppet
38 lines
1.0 KiB
Puppet
class openstack_project::jenkins($jenkins_jobs_password) {
|
|
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [80, 443, 4155]
|
|
}
|
|
|
|
class { '::jenkins::master':
|
|
vhost_name => 'jenkins.openstack.org',
|
|
serveradmin => 'webmaster@openstack.org',
|
|
logo => 'openstack.png',
|
|
ssl_cert_file => '/etc/ssl/certs/jenkins.openstack.org.pem',
|
|
ssl_key_file => '/etc/ssl/private/jenkins.openstack.org.key',
|
|
ssl_chain_file => '/etc/ssl/certs/intermediate.pem',
|
|
}
|
|
|
|
class { "::jenkins::job_builder":
|
|
url => "https://jenkins.openstack.org/",
|
|
username => "gerrig",
|
|
password => $jenkins_jobs_password,
|
|
}
|
|
|
|
file { '/etc/jenkins_jobs/config':
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => 755,
|
|
ensure => 'directory',
|
|
recurse => true,
|
|
source => ['puppet:///modules/openstack_project/jenkins_job_builder/config'],
|
|
notify => Exec["jenkins_jobs_update"]
|
|
}
|
|
|
|
file { "/etc/default/jenkins":
|
|
ensure => 'present',
|
|
source => 'puppet:///modules/openstack_project/jenkins/jenkins.default'
|
|
}
|
|
|
|
}
|