aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-23 15:00:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-23 15:00:02 -0300
commit1a860b498c0b6979dd8ab4b3c6635df0f905e7c1 (patch)
tree553cef230220defd74143dc09ab24edb7f51049e /manifests
parent73fbdc7bce2842c96ee397e7206bf88c9a4c2d32 (diff)
downloadpuppet-virtual-1a860b498c0b6979dd8ab4b3c6635df0f905e7c1.tar.gz
puppet-virtual-1a860b498c0b6979dd8ab4b3c6635df0f905e7c1.tar.bz2
KVMX: manage box.img symlink
Diffstat (limited to 'manifests')
-rw-r--r--manifests/kvm/kvmx/instance.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/kvm/kvmx/instance.pp b/manifests/kvm/kvmx/instance.pp
index dd6cdb6..e57c672 100644
--- a/manifests/kvm/kvmx/instance.pp
+++ b/manifests/kvm/kvmx/instance.pp
@@ -31,6 +31,11 @@ define virtual::kvm::kvmx::instance(
require => Virtual::Kvm::Instance["$name"], # due to udev rule
}
+ file { "/home/${name}/vms/${name}/box.img":
+ ensure => "/dev/mapper/${name}",
+ require => Virtual::Kvm::Instance["$name"],
+ }
+
exec { "kvmx-init-${name}":
command => "/usr/local/bin/kvmx init",
user => $name,