Saltstack Official Linux Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

19 rindas
439B

  1. {%- from "linux/map.jinja" import network with context %}
  2. {%- if network.dhclient.enabled|default(False) %}
  3. dhclient_conf:
  4. file.managed:
  5. - name: {{ network.dhclient_config }}
  6. - source: salt://linux/files/dhclient.conf
  7. - template: jinja
  8. {%- elif network.dhclient.enabled is defined and network.dhclient.enabled == False %}
  9. kill_dhcp_client:
  10. cmd.run:
  11. - name: "pkill dhclient"
  12. - onlyif: "pgrep dhclient"
  13. {%- endif %}