a6202f901b
* modules/openstack_project/manifests/automatic_upgrades.pp: Pass the additional allowed origins list through to the unattended upgrades module. * modules/openstack_project/manifests/slave.pp: Add the "LP-PPA-saltstack-salt precise" repository origin to the list of allowed origins for automatic upgrades. * modules/unattended_upgrades/manifests/init.pp: Add a list of additional allowed origins for package repository upgrades and convert the apt-preferences stub for 50unattended-upgrades to a template so the list can be applied to it. * modules/unattended_upgrades/templates/50unattended-upgrades.erb: Renamed from ../../files/50unattended-upgrades and enhanced with a loop over the origins list to append to the default set of allowed upgrade origins. Change-Id: I821d199ae1a00ed78c2a52bf80ddba8a4eaa7d8b
39 lines
970 B
Puppet
39 lines
970 B
Puppet
# == Class: openstack_project::slave
|
|
#
|
|
class openstack_project::slave (
|
|
$bare = 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':
|
|
bare => $bare,
|
|
ssh_key => $ssh_key,
|
|
python3 => $python3,
|
|
include_pypy => $include_pypy,
|
|
}
|
|
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'
|
|
}
|
|
}
|