Skip to content

Instantly share code, notes, and snippets.

@UtahDave
Forked from dginther/gist:6032369
Last active December 19, 2015 23:08
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 UtahDave/6032439 to your computer and use it in GitHub Desktop.
Save UtahDave/6032439 to your computer and use it in GitHub Desktop.
mysql:
pkg:
- installed
- names:
- mysql-server
- mysql-client
- require:
- pkg: python-mysqldb
- debconf: 'mysql-debconf'
service:
- enable: True
- running
- reload: True
- watch:
- file: /etc/mysql/my.cnf
- require:
- pkg: mysql
debconf-utils:
pkg:
- installed
python-mysqldb:
pkg:
- installed
mysql-debconf:
debconf.set_file:
- source: salt://mysql/mysql-{{ grains['ec2_environment'] }}.sel
- require:
- pkg: debconf-utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment