2332c2ecfc
Change-Id: Id45aa43e20d281babd89f06f552bb244f2da353a Reviewed-on: https://review.openstack.org/14896 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
41 lines
853 B
Puppet
41 lines
853 B
Puppet
# == Class: jenkins::cgroups
|
|
#
|
|
class jenkins::cgroups {
|
|
|
|
package { 'cgroup-bin':
|
|
ensure => present,
|
|
}
|
|
|
|
file { '/etc/cgconfig.conf':
|
|
ensure => present,
|
|
replace => true,
|
|
owner => 'root',
|
|
group => 'jenkins',
|
|
mode => '0644',
|
|
content => template('jenkins/cgconfig.erb'),
|
|
}
|
|
|
|
file { '/etc/cgrules.conf':
|
|
ensure => present,
|
|
replace => true,
|
|
owner => 'root',
|
|
group => 'jenkins',
|
|
mode => '0644',
|
|
source => 'puppet:///modules/jenkins/cgroups/cgrules.conf',
|
|
}
|
|
|
|
service { 'cgconfig':
|
|
ensure => running,
|
|
enable => true,
|
|
require => Package['cgroup-bin'],
|
|
subscribe => File['/etc/cgconfig.conf'],
|
|
}
|
|
|
|
service { 'cgred':
|
|
ensure => running,
|
|
enable => true,
|
|
require => Package['cgroup-bin'],
|
|
subscribe => File['/etc/cgrules.conf'],
|
|
}
|
|
}
|