diff options
-rw-r--r-- | manifests/vserver/instance.pp | 4 |
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, } |