瀏覽代碼

Fix for network interfaces idempotence

tags/2016.12
Olivier Bourdon 8 年之前
父節點
當前提交
866c348d32
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      linux/network/interface.sls

+ 1
- 0
linux/network/interface.sls 查看文件

@@ -88,6 +88,7 @@ linux_interface_{{ interface_name }}:
- type: {{ interface.type }}
{%- if interface.address is defined %}
{%- if grains.os_family == 'Debian' %}
- unless: grep -q "iface {{ interface_name }} " /etc/network/interfaces
- proto: {{ interface.get('proto', 'static') }}
{% endif %}
{%- if grains.os_family == 'RedHat' %}

Loading…
取消
儲存