diff options
Diffstat (limited to 'manifests/kvm/kvmx')
-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, |