aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vserver/instance.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/vserver/instance.pp b/manifests/vserver/instance.pp
index 7524df6..6db61e4 100644
--- a/manifests/vserver/instance.pp
+++ b/manifests/vserver/instance.pp
@@ -45,12 +45,14 @@ define nodo::vserver::instance(
'': { $tor_port = "9001" }
}
+ $dev = hiera('nodo::vserver::interface', 'eth0')
+
vserver { $name:
ensure => $ensure,
context => "$context",
mark => 'default',
distro => $distro,
- interface => "eth0:192.168.0.$context/24",
+ interface => "${dev}:192.168.0.${context}/24",
hostname => "$name.$domain",
memory_limit => $memory_limit,
}