Browse Source

Fix for network interfaces idempotence

tags/2016.12
Olivier Bourdon 8 years ago
parent
commit
866c348d32
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      linux/network/interface.sls

+ 1
- 0
linux/network/interface.sls View File

@@ -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…
Cancel
Save