mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 17:50:27 +00:00
Merge pull request #167 from jcu-eresearch/fix-fqdn
Fix duplicate ID if fqdn is localhost/localhost.localdomain
This commit is contained in:
commit
24d74d5731
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue