mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-15 17:20:25 +00:00
Merge pull request #37 from jcu-eresearch/fix-user-removal
Ensure all anonymous users are removed; ensure None values for fqdn are handled for YAML
This commit is contained in:
commit
b697e58c73
1 changed files with 5 additions and 2 deletions
|
@ -24,11 +24,14 @@ mysql_root_password:
|
|||
- require:
|
||||
- service: mysqld
|
||||
|
||||
{% for host in ['localhost', salt['grains.get']('fqdn')] %}
|
||||
include:
|
||||
- mysql.python
|
||||
|
||||
{% for host in ['localhost', 'localhost.localdomain', salt['grains.get']('fqdn')] %}
|
||||
mysql_delete_anonymous_user_{{ host }}:
|
||||
mysql_user:
|
||||
- absent
|
||||
- host: {{ host }}
|
||||
- host: {{ host or "''" }}
|
||||
- name: ''
|
||||
- connection_host: localhost
|
||||
- connection_user: root
|
||||
|
|
Loading…
Add table
Reference in a new issue