From b597cfe82f9ae180a513a108cdd32968d84058bb Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 28 Oct 2008 16:33:36 -0400 Subject: add assert_lsbdistcodename so that we can query to see if we are running etch/lenny etc. --- manifests/vserver.pp | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/manifests/vserver.pp b/manifests/vserver.pp index fdf6a21..2771ffd 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -4,24 +4,27 @@ modules_dir{ "virtual/contexts": } class vserver::host { - package { - "util-vserver": - ensure => "0.30.215-2~bpo40+1"; - - debootstrap: - ensure => installed - } - - file { - "/etc/vservers": - ensure => directory, - require => Package["util-vserver"]; - - "/etc/vservers/local-interfaces/": - ensure => directory, - mode => 0755, owner => root, group => root, - require => File["/etc/vservers"]; - } + # make sure we have the ability to query for lsbdistcodename + include assert_lsbdistcodename + + package { + "util-vserver": + ensure => "0.30.215-2~bpo40+1"; + + debootstrap: + ensure => installed + } + + file { + "/etc/vservers": + ensure => directory, + require => Package["util-vserver"]; + + "/etc/vservers/local-interfaces/": + ensure => directory, + mode => 0755, owner => root, group => root, + require => File["/etc/vservers"]; + } } -- cgit v1.2.3