e35a6e7c73
Put jenkins_master into jenkins::master and jenkins_job_builder into jenkins::job_builder and jenkins_slave into jenkins::slave. Change-Id: Icb0e3071894730c17d8f36f49e9d34979d9c568e Reviewed-on: https://review.openstack.org/11249 Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
38 lines
758 B
Puppet
38 lines
758 B
Puppet
class jenkins::cgroups {
|
|
|
|
package { 'cgroup-bin':
|
|
ensure => present
|
|
}
|
|
|
|
file { '/etc/cgconfig.conf':
|
|
ensure => present,
|
|
replace => true,
|
|
owner => root,
|
|
mode => 0644,
|
|
content => template('jenkins/cgconfig.erb')
|
|
}
|
|
|
|
file { '/etc/cgrules.conf':
|
|
ensure => present,
|
|
replace => true,
|
|
owner => root,
|
|
mode => 0644,
|
|
source => 'puppet:///modules/jenkins/cgroups/cgrules.conf'
|
|
}
|
|
|
|
service { 'cgconfig':
|
|
enable => true,
|
|
ensure => running,
|
|
require => Package['cgroup-bin'],
|
|
subscribe => File['/etc/cgconfig.conf']
|
|
}
|
|
|
|
service { 'cgred':
|
|
enable => true,
|
|
ensure => running,
|
|
require => Package['cgroup-bin'],
|
|
subscribe => File['/etc/cgrules.conf']
|
|
}
|
|
|
|
}
|