Преглед изворни кода

Disable resolvconf service.

When resolv.conf file is managed by salt, resolvconf service should be disabled
because it overwriting resolv.conf after reboot.

Change-Id: I7ec85872ddbd5f90232d5d41a8171169c779a1c5
pull/139/head
Andrey Shestakov пре 7 година
родитељ
комит
7df80d16a6
1 измењених фајлова са 7 додато и 4 уклоњено
  1. +7
    -4
      linux/network/resolv.sls

+ 7
- 4
linux/network/resolv.sls Прегледај датотеку

@@ -6,10 +6,13 @@
- source: salt://linux/files/resolv.conf
- mode: 644
- template: jinja
- follow_symlinks: false
- require:
- service: resolvconf_service

linux_resolvconf_disable:
cmd.run:
- name: resolvconf --disable-updates
- onlyif: resolvconf --updates-are-enabled
resolvconf_service:
service.dead:
- name: resolvconf
- enable: false

{%- endif %}

Loading…
Откажи
Сачувај