d9714e0f9a
Jenkins job builder setup was moved into openstackci::jenkins_master and some of the params names were changes so need to update usage of the params accordingly. Change-Id: Id10d63745fff43f3188e630df38c8c9ba97c3e17 depends-on: I50d4d2dd4209250e14ceeb7ff8ddf5b6ba3e2ad4 needed-by: I8d50577fcc0b0a5dbce822eef15bacfaf0453947
57 lines
1.9 KiB
Puppet
57 lines
1.9 KiB
Puppet
# == Class: openstack_project::jenkins
|
|
#
|
|
class openstack_project::jenkins (
|
|
$vhost_name = $::fqdn,
|
|
$jenkins_password = '',
|
|
$jenkins_username = 'gerrig', # This is not a typo, well it isn't anymore.
|
|
$ssl_cert_file = '',
|
|
$ssl_key_file = '',
|
|
$ssl_chain_file = '/etc/ssl/certs/intermediate.pem',
|
|
$ssl_cert_file_contents = '',
|
|
$ssl_key_file_contents = '',
|
|
$ssl_chain_file_contents = '',
|
|
$jenkins_ssh_public_key = $openstack_project::jenkins_ssh_key,
|
|
$jenkins_ssh_private_key = '',
|
|
$project_config_repo = '',
|
|
$project_config_base = '',
|
|
$serveradmin = 'webmaster@openstack.org',
|
|
$logo = 'openstack.png',
|
|
) inherits openstack_project {
|
|
include openstack_project
|
|
|
|
# Set defaults here because they evaluate variables which you cannot
|
|
# do in the class parameter list.
|
|
if $ssl_cert_file == '' {
|
|
$prv_ssl_cert_file = "/etc/ssl/certs/${vhost_name}.pem"
|
|
}
|
|
else {
|
|
$prv_ssl_cert_file = $ssl_cert_file
|
|
}
|
|
if $ssl_key_file == '' {
|
|
$prv_ssl_key_file = "/etc/ssl/private/${vhost_name}.key"
|
|
}
|
|
else {
|
|
$prv_ssl_key_file = $ssl_key_file
|
|
}
|
|
|
|
class { 'openstackci::jenkins_master':
|
|
vhost_name => $vhost_name,
|
|
serveradmin => $serveradmin,
|
|
logo => $logo,
|
|
ssl_cert_file => $prv_ssl_cert_file,
|
|
ssl_key_file => $prv_ssl_key_file,
|
|
ssl_chain_file => $ssl_chain_file,
|
|
ssl_cert_file_contents => $ssl_cert_file_contents,
|
|
ssl_key_file_contents => $ssl_key_file_contents,
|
|
ssl_chain_file_contents => $ssl_chain_file_contents,
|
|
jenkins_ssh_private_key => $jenkins_ssh_private_key,
|
|
jenkins_ssh_public_key => $jenkins_ssh_public_key,
|
|
project_config_repo => $project_config_repo,
|
|
project_config_base => $project_config_base,
|
|
jenkins_username => $jenkins_username,
|
|
jenkins_password => $jenkins_password,
|
|
jenkins_url => "https://${vhost_name}/",
|
|
manage_jenkins_jobs => true,
|
|
}
|
|
}
|