Fix duplicate ID if fqdn is localhost/localhost.localdomain

This commit is contained in:
David Beitey 2017-08-02 17:17:10 +10:00
parent c9b45bc267
commit 8dd3d4da46

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