Browse Source

Merge pull request #57 from salt-formulas/pr_hostname

dont touch hostname if not needed
tags/2017.4
Filip Pytloun 7 years ago
parent
commit
76dbbdf5f6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      linux/network/hostname.sls

+ 2
- 1
linux/network/hostname.sls View File

@@ -19,6 +19,7 @@ linux_hostname_file:
linux_enforce_hostname:
cmd.wait:
- name: hostname {{ network.hostname }}
- unless: test "$(hostname)" = "{{ network.hostname }}"

{#
linux_hostname_hosts:
@@ -29,4 +30,4 @@ linux_hostname_hosts:
- {{ network.hostname }}
#}

{%- endif %}
{%- endif %}

Loading…
Cancel
Save