Skip to content

Instantly share code, notes, and snippets.

@thecodeassassin
Created August 21, 2013 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecodeassassin/9cfc99bbede74f313293 to your computer and use it in GitHub Desktop.
Save thecodeassassin/9cfc99bbede74f313293 to your computer and use it in GitHub Desktop.
db-user:
mysql_user.present:
- name: {{ pillar["db"]["user"] }}
- password: {{ pillar["db"]["password"] }}
- host: '%'
mysql_grants.present:
- grant: all privileges
- grant_option: true
- user: {{ pillar["db"]["user"] }}
root-user:
mysql_user.absent:
- name: root
- password: {{ pillar["db"]["password"] }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment