diff options
author | Micah Anderson <micah@riseup.net> | 2008-10-28 16:33:36 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2008-10-28 16:33:36 -0400 |
commit | b597cfe82f9ae180a513a108cdd32968d84058bb (patch) | |
tree | 9675331e355b92e12601141bbe0775472f918c4c | |
parent | 85a25744668031d15f3e89f5da351bf3878e81f0 (diff) | |
download | puppet-virtual-b597cfe82f9ae180a513a108cdd32968d84058bb.tar.gz puppet-virtual-b597cfe82f9ae180a513a108cdd32968d84058bb.tar.bz2 |
add assert_lsbdistcodename so that we can query to see if we are running etch/lenny etc.
-rw-r--r-- | manifests/vserver.pp | 39 |
1 files 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"]; + } } |