
Since the puppet 3 release puppet versions are semver and we should be able to rely on minor version releases not breaking the world. To get security updates and the like allow puppet to be automatically upgraded. Do this by setting an additional origin for the puppetlabs apt repo in our unattended upgrades template. Change-Id: I6224ef68aeb891431661f3afc553c4c3433e583a
44 lines
884 B
Puppet
44 lines
884 B
Puppet
# == Class: openstack_project::slave
|
|
#
|
|
class openstack_project::slave (
|
|
$thin = false,
|
|
$certname = $::fqdn,
|
|
$ssh_key = '',
|
|
$sysadmins = [],
|
|
$python3 = false,
|
|
$include_pypy = false
|
|
) {
|
|
|
|
include openstack_project
|
|
include openstack_project::tmpcleanup
|
|
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [],
|
|
certname => $certname,
|
|
sysadmins => $sysadmins,
|
|
}
|
|
|
|
class { 'jenkins::slave':
|
|
ssh_key => $ssh_key,
|
|
python3 => $python3,
|
|
}
|
|
|
|
include jenkins::cgroups
|
|
include ulimit
|
|
ulimit::conf { 'limit_jenkins_procs':
|
|
limit_domain => 'jenkins',
|
|
limit_type => 'hard',
|
|
limit_item => 'nproc',
|
|
limit_value => '256'
|
|
}
|
|
|
|
class { 'openstack_project::slave_common':
|
|
include_pypy => $include_pypy,
|
|
}
|
|
|
|
if (! $thin) {
|
|
include openstack_project::thick_slave
|
|
}
|
|
|
|
}
|