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:
Nitin Madhok 2014-10-09 06:49:59 -04:00
commit b697e58c73

View file

@ -24,11 +24,14 @@ mysql_root_password:
- require: - require:
- service: mysqld - 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_delete_anonymous_user_{{ host }}:
mysql_user: mysql_user:
- absent - absent
- host: {{ host }} - host: {{ host or "''" }}
- name: '' - name: ''
- connection_host: localhost - connection_host: localhost
- connection_user: root - connection_user: root