aboutsummaryrefslogtreecommitdiff
path: root/manifests/kvm/instance.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/kvm/instance.pp')
-rw-r--r--manifests/kvm/instance.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/kvm/instance.pp b/manifests/kvm/instance.pp
index bffedfa..874a1e1 100644
--- a/manifests/kvm/instance.pp
+++ b/manifests/kvm/instance.pp
@@ -37,5 +37,11 @@ define virtual::kvm::instance(
content => template('virtual/kvm.rules.erb'),
require => User[$name],
}
+
+ exec { "udev-reload-kvm-${name}":
+ command => "/sbin/udevadm control --reload-rules && /sbin/udevadm trigger",
+ refreshonly => true,
+ subscribe => File["/etc/udev/rules.d/92-kvm-${name}.rules"],
+ }
}
}