aboutsummaryrefslogtreecommitdiff
path: root/manifests/kvm/manager/instance.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-30 22:34:26 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-30 22:34:26 -0200
commit4b18be69d3635efd618deb8311c4a4fb2dd0c03e (patch)
tree510e9d7cc6c8eb3b146ad008d8863a31727b2731 /manifests/kvm/manager/instance.pp
parent4a2e70edeb1d87674156cd8328352582e25d1525 (diff)
downloadpuppet-virtual-develop.tar.gz
puppet-virtual-develop.tar.bz2
KVMX supportHEADmasterdevelop
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}"],
}
}