diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 22:34:26 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 22:34:26 -0200 |
commit | 4b18be69d3635efd618deb8311c4a4fb2dd0c03e (patch) | |
tree | 510e9d7cc6c8eb3b146ad008d8863a31727b2731 /manifests/kvm/manager | |
parent | 4a2e70edeb1d87674156cd8328352582e25d1525 (diff) | |
download | puppet-virtual-master.tar.gz puppet-virtual-master.tar.bz2 |
Diffstat (limited to 'manifests/kvm/manager')
-rw-r--r-- | manifests/kvm/manager/instance.pp | 18 |
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}"], } } |