Skip to content

Instantly share code, notes, and snippets.

@miwillhite
Created August 23, 2013 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miwillhite/6319835 to your computer and use it in GitHub Desktop.
Save miwillhite/6319835 to your computer and use it in GitHub Desktop.
# Install mysql server
mysql-server:
pkg:
- installed
mysql:
service.running:
- name: mysql
- require:
- pkg: mysql-server
python-mysqldb:
pkg:
- installed
# FIXME I would like to move this over to user-central-formula
database-setup:
mysql_user.present:
- allow_passwordless: True
- name: root
- require:
- service: mysql
- pkg: python-mysqldb
mysql_database.present:
- name: user_central_development
- require:
- mysql_user.present: database-setup
mysql_grants.present:
- grant: all privileges
- database: exampledb.*
- user: root
- require:
- mysql_database.present: database-setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment