]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Support for kvmx-shell at nodo::subsystem::virtual::instance
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 31 Dec 2017 17:39:30 +0000 (15:39 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 31 Dec 2017 17:39:30 +0000 (15:39 -0200)
manifests/subsystem/virtual/instance.pp

index 0f1b2c1cbfac2acb9b2f8fa37be32d0f196a47bc..391722b5ace7f69464861f40f500e79e2771845f 100644 (file)
@@ -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,
+      },
     }
   }