Monty Taylor 5edaf90e60 Put the mirror config into slave_common
slave.pp is skipped for single-use slaves. Put the base mirror config
into slave_common so that it'll get picked up.

Change-Id: I4bff37ecab78264207e83eb237798ed320dfdab7
2014-07-01 10:44:37 -07:00

52 lines
1.0 KiB
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::automatic_upgrades':
origins => ['LP-PPA-saltstack-salt precise'],
}
class { 'openstack_project::server':
iptables_public_tcp_ports => [],
certname => $certname,
sysadmins => $sysadmins,
}
class { 'jenkins::slave':
ssh_key => $ssh_key,
python3 => $python3,
}
class { 'salt':
salt_master => 'ci-puppetmaster.openstack.org',
}
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
}
}