diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/vserver.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index b4d49d1..2c5b14c 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -392,44 +392,59 @@ define vs_sched($ensure = present, $fill_rate = '', $fill_rate2 = '', $interval = '', $interval2 = '', $tokens_min = '', $tokens_max = '', $tokens = '', $idle_time = false, $priority_bias = '') { + file { "/etc/vservers/${name}/sched": + ensure => directory, + owner => root, + group => root, + mode => 0755, + } + file { "/etc/vservers/${name}/sched/fill-rate": ensure => $ensure, content => "$fill_rate\n", + require => File["/etc/vservers/${name}/sched"], } file { "/etc/vservers/${name}/sched/fill-rate2": ensure => $ensure, content => "$fill_rate2\n", + require => File["/etc/vservers/${name}/sched"], } file { "/etc/vservers/${name}/sched/interval": ensure => $ensure, content => "$interval\n", + require => File["/etc/vservers/${name}/sched"], } file { "/etc/vservers/${name}/sched/interval2": ensure => $ensure, content => "$interval2\n", + require => File["/etc/vservers/${name}/sched"], } file { "/etc/vservers/${name}/sched/tokens-min": ensure => $ensure, content => "$tokens_min\n", + require => File["/etc/vservers/${name}/sched"], } file { "/etc/vservers/${name}/sched/tokens-max": ensure => $ensure, content => "$tokens_max\n", + require => File["/etc/vservers/${name}/sched"], } file { "/etc/vservers/${name}/sched/tokens": ensure => $ensure, content => "$tokens\n", + require => File["/etc/vservers/${name}/sched"], } file { "/etc/vservers/${name}/sched/priority-bias": ensure => $ensure, content => "$priority_bias\n", + require => File["/etc/vservers/${name}/sched"], } vs_cflags { "${name}-sched_hard": |