aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-26 16:50:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-09-26 16:50:28 -0300
commit78c6013ade59478c3f4bdf40b3a7a32d9a354b4c (patch)
tree3af76f6d6bdf90dd2ef8fae15ed12f767c4dbe4f /manifests
parent3823fb5ebcefed42c371a23ffec1a59664033242 (diff)
downloadpuppet-nodo-78c6013ade59478c3f4bdf40b3a7a32d9a354b4c.tar.gz
puppet-nodo-78c6013ade59478c3f4bdf40b3a7a32d9a354b4c.tar.bz2
New hiera parameter nodo::vserver::interface
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,
}