From 2be25c00863990165c8a4dcce2cd1249dd549d36 Mon Sep 17 00:00:00 2001 From: Martin Horak Date: Mon, 29 Oct 2018 13:45:02 +0100 Subject: [PATCH] Parameterize salt identifier with cluster_name - allow to define more clusters than one. --- salt/control/virt.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/control/virt.sls b/salt/control/virt.sls index 08e6158..0805b2d 100644 --- a/salt/control/virt.sls +++ b/salt/control/virt.sls @@ -20,7 +20,7 @@ update-guestfs-appliance: {%- if cluster.engine == "virt" %} -salt_libvirt_service: +salt_libvirt_service_{{ cluster_name }}: service.running: - name: {{ control.virt_service }} - enable: true @@ -108,7 +108,7 @@ salt_control_virt_{{ cluster_name }}_{{ node_name }}: {%- endif %} - unless: virsh list --all --name| grep -E "^{{ node_name }}.{{ cluster.domain }}$" - require: - - salt_libvirt_service + - salt_libvirt_service_{{ cluster_name }} {%- if node.get("autostart", True) %}