Skip to content

Instantly share code, notes, and snippets.

@thecodeassassin
Created August 23, 2013 12:56
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/830b8c35df6b1dbefd4e to your computer and use it in GitHub Desktop.
Save thecodeassassin/830b8c35df6b1dbefd4e to your computer and use it in GitHub Desktop.
packages:
pkg.installed:
- names:
- python2.7-dev
- libjpeg62-dev
- python-dev
- git
- python-virtualenv
- python-pip
- php5-dev
- php5-cli
- python-mysqldb
mariadb_repo:
pkgrepo:
- managed
- keyid: '0xcbcb082a1bb943db'
- keyserver: keyserver.ubuntu.com
- name: deb http://repo.maxindo.net.id/mariadb/repo/5.5/ubuntu precise main
/etc/mysql/my.cnf:
file:
- managed
- source: salt://templates/database/my.cnf
- mode: 644
- makedirs: True
mariadb-server:
pkg:
- installed
- require:
- pkgrepo: mariadb_repo
- file: /etc/mysql/my.cnf
service:
- name: mysql
- running
- enable: True
- watch:
- file: /etc/mysql/my.cnf
- require:
- pkg: mariadb-server
- pkg: python-mysqldb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment