diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/vserver.pp | 2 | ||||
-rw-r--r-- | manifests/vserver/cflags.pp | 4 | ||||
-rw-r--r-- | manifests/vserver/host.pp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 991bebd..a650c35 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -64,7 +64,7 @@ define virtual::vserver( # we have to do it for each vserver, see # http://linux-vserver.org/Secure_chroot_Barrier#Solution:_Secure_Barrier exec { "/usr/sbin/setattr --barrier /etc/vservers/${vs_name}/vdir/../": - unless => "/usr/sbin/showattr /etc/vservers/${vs_name}/vdir/../ | grep -- '----Bui- /etc/vservers/${vs_name}/vdir/../$'", + unless => "/usr/sbin/showattr /etc/vservers/${vs_name}/vdir/../ | /bin/grep -- '----Bui- /etc/vservers/${vs_name}/vdir/../$'", require => Exec["vserver_instance_${vs_name}"], } diff --git a/manifests/vserver/cflags.pp b/manifests/vserver/cflags.pp index 462c9e4..92c4040 100644 --- a/manifests/vserver/cflags.pp +++ b/manifests/vserver/cflags.pp @@ -5,9 +5,9 @@ define virtual::vserver::cflags($vserver, $flag, $ensure = present) { } } - line {"vs_cflags-${vserver}-${flag}": + file_line {"vs_cflags-${vserver}-${flag}": ensure => $ensure, - file => "/etc/vservers/${vserver}/cflags", + path => "/etc/vservers/${vserver}/cflags", line => "${flag}", require => Exec["vserver_instance_${vserver}"], notify => Exec["vattribute-${vserver}-${flag}"], diff --git a/manifests/vserver/host.pp b/manifests/vserver/host.pp index 69718dd..081fd07 100644 --- a/manifests/vserver/host.pp +++ b/manifests/vserver/host.pp @@ -57,8 +57,8 @@ class virtual::vserver::host($vdirbase = "/var/lib/vservers") { } # remove dummy interfaces on the host - line { modules_dummy: - file => "/etc/modules", + file_line { modules_dummy: + path => "/etc/modules", line => "^dummy", ensure => absent, } |