From 1a860b498c0b6979dd8ab4b3c6635df0f905e7c1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 23 Jun 2018 15:00:02 -0300 Subject: KVMX: manage box.img symlink --- manifests/kvm/kvmx/instance.pp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'manifests') 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, -- cgit v1.2.3