aboutsummaryrefslogtreecommitdiff
path: root/manifests/vserver.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/vserver.pp')
-rw-r--r--manifests/vserver.pp39
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"];
+ }
}