Merge pull request #167 from jcu-eresearch/fix-fqdn

Fix duplicate ID if fqdn is localhost/localhost.localdomain
This commit is contained in:
Niels Abspoel 2017-08-03 09:51:24 +02:00 committed by GitHub
commit 24d74d5731

View file

@ -39,7 +39,7 @@ mysql_root_password:
- require:
- service: mysqld
{% for host in ['localhost', 'localhost.localdomain', salt['grains.get']('fqdn')] %}
{% for host in {'localhost': '', 'localhost.localdomain': '', salt['grains.get']('fqdn'): ''}.keys() %}
mysql_delete_anonymous_user_{{ host }}:
mysql_user:
- absent