diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-23 15:00:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-23 15:00:02 -0300 |
commit | 1a860b498c0b6979dd8ab4b3c6635df0f905e7c1 (patch) | |
tree | 553cef230220defd74143dc09ab24edb7f51049e | |
parent | 73fbdc7bce2842c96ee397e7206bf88c9a4c2d32 (diff) | |
download | puppet-virtual-1a860b498c0b6979dd8ab4b3c6635df0f905e7c1.tar.gz puppet-virtual-1a860b498c0b6979dd8ab4b3c6635df0f905e7c1.tar.bz2 |
KVMX: manage box.img symlink
-rw-r--r-- | manifests/kvm/kvmx/instance.pp | 5 |
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, |