aboutsummaryrefslogtreecommitdiff
path: root/manifests/kvm/manager/instance.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/kvm/manager/instance.pp')
-rw-r--r--manifests/kvm/manager/instance.pp18
1 files changed, 3 insertions, 15 deletions
diff --git a/manifests/kvm/manager/instance.pp b/manifests/kvm/manager/instance.pp
index 621a3ca..c9ecff9 100644
--- a/manifests/kvm/manager/instance.pp
+++ b/manifests/kvm/manager/instance.pp
@@ -11,26 +11,14 @@ define virtual::kvm::manager::instance(
creates => "/etc/sv/kvm/${name}",
}
- user { $name:
- ensure => present,
- home => "/home/${name}",
- groups => [ 'kvm' ],
- require => Exec["kvm-creator-${name}"],
- }
-
exec { "update-service-kvm-${name}":
command => "/usr/sbin/update-service --add /etc/sv/kvm/${name}",
creates => "/etc/service/${name}",
require => [ Exec["kvm-creator-${name}"], User["${name}"] ],
}
- if $udev == true {
- file { "/etc/udev/rules.d/92-kvm_creator-${name}.rules":
- ensure => present,
- owner => root,
- group => root,
- mode => '0644',
- content => template('virtual/kvm_creator.rules.erb'),
- }
+ virtual::kvmx::instance { "$name":
+ udev => $udev,
+ require => Exec["kvm-creator-${name}"],
}
}