saltstack-formulas / hostsfile-formula

Use minion IDs to keep /etc/hosts and hostnames consistent for clusters without DNS
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
33 stars 89 forks source link

set-fqdn always changes state in Debian #10

Closed blbradley closed 3 years ago

blbradley commented 9 years ago

Does this happen on RedHat also?

Doing something like this instead of unless: test ... does the trick. I'm sure we could make it compatible with RedHat too.

cmd.run:
  - name: hostname {{ grains['id'] }}
  - onchanges:
    - file: /etc/hostname

Cheers!

bogdanr commented 8 years ago

This is also happen to me. It will mess up statistics for how often states change.

bxm156 commented 8 years ago

i'm seeing the same problem on ubuntu

saltstack-formulas-travis commented 3 years ago

:tada: This issue has been resolved in version 0.9.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: