system-config/modules/jenkins/manifests/cgroups.pp
Matthew Wagoner 2332c2ecfc Cleanup jenkins manifest lint errors. Take 2.
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
2012-10-30 16:34:31 +00:00

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'],
}
}