浏览代码

Parameterize salt identifier with cluster_name - allow to define more clusters than one.

pull/78/head
Martin Horak 6 年前
父节点
当前提交
2be25c0086
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      salt/control/virt.sls

+ 2
- 2
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) %}


正在加载...
取消
保存