aboutsummaryrefslogtreecommitdiff
path: root/templates/kvm_creator.rules.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/kvm_creator.rules.erb')
-rw-r--r--templates/kvm_creator.rules.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/kvm_creator.rules.erb b/templates/kvm_creator.rules.erb
new file mode 100644
index 0000000..8267d90
--- /dev/null
+++ b/templates/kvm_creator.rules.erb
@@ -0,0 +1,3 @@
+ACTION=="change", SUBSYSTEM=="block", ATTR{dm/name}=="<%= scope.lookupvar('::hostname') %>-<%= @name %>", GROUP="<%= @name %>"
+ACTION=="change", SUBSYSTEM=="block", ATTR{dm/name}=="<%= @name %>", GROUP="<%= @name %>"
+ACTION=="change", SUBSYSTEM=="block", ATTR{dm/name}=="<%= @name %>1", GROUP="<%= @name %>"