aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-31 15:39:30 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-31 15:39:30 -0200
commitdf602de6ff3c49be54a258d3b1ff2a954c519cbf (patch)
treede89b0dd5af87ef45d130c05c680bcc4852b61ce
parent491d33b28fd893519e375217b20f52f3cb68600c (diff)
downloadpuppet-nodo-df602de6ff3c49be54a258d3b1ff2a954c519cbf.tar.gz
puppet-nodo-df602de6ff3c49be54a258d3b1ff2a954c519cbf.tar.bz2
Support for kvmx-shell at nodo::subsystem::virtual::instance
-rw-r--r--manifests/subsystem/virtual/instance.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/subsystem/virtual/instance.pp b/manifests/subsystem/virtual/instance.pp
index 0f1b2c1..391722b 100644
--- a/manifests/subsystem/virtual/instance.pp
+++ b/manifests/subsystem/virtual/instance.pp
@@ -6,6 +6,7 @@ define nodo::subsystem::virtual::instance(
$size = '10G',
$ensure = 'running',
$implementation = 'kvmx',
+ $shell = undef,
$proxy = false,
$web = false,
$gitd = false,
@@ -35,7 +36,11 @@ define nodo::subsystem::virtual::instance(
if $implementation == 'kvmx' {
virtual::kvm::instance { $name:
- udev => $udev,
+ udev => $udev,
+ shell => $shell ? {
+ undef => '/usr/local/bin/kvmx-shell',
+ default => $shell,
+ },
}
}