瀏覽代碼

Allow to edit the dhclient_conf via the interfaces state.

pull/9/head
René Jochum 9 年之前
父節點
當前提交
b1daeff7a5
共有 1 個檔案被更改,包括 11 行新增1 行删除
  1. +11
    -1
      network/interfaces.sls

+ 11
- 1
network/interfaces.sls 查看文件

@@ -12,7 +12,17 @@
{%- endif -%}
{%- endmacro -%}

{% if salt['pillar.get']('network:interfaces', False) %}
{%- if 'dhclient_conf' in salt['pillar.get']('network') %}
dhclient_conf:
file.managed:
- name: /etc/dhcp/dhclient.conf
- mode: 644
- user: root
- group: root
- contents_pillar: network:dhclient_conf
{% endif %}

{%- if salt['pillar.get']('network:interfaces', False) %}
{% set interfaces = interfaces + salt['pillar.get']('network:interfaces') %}
{% endif %}


Loading…
取消
儲存