Skip to content

Instantly share code, notes, and snippets.

@UtahDave
Created July 19, 2013 04:19
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/f4aba7a49a1b715f1a08 to your computer and use it in GitHub Desktop.
Save UtahDave/f4aba7a49a1b715f1a08 to your computer and use it in GitHub Desktop.
Wordpress and mysql install on Ubuntu 12.04 Note: this does NOT load the database with the correct schema and data
apache2:
pkg:
- installed
service:
- running
- enable: True
- watch:
- pkg: wp-pkgs
wp-pkgs:
pkg.installed:
- pkgs:
- php5
- php5-mysql
- python-mysqldb
- require:
- pkg: mysqlserver
- pkg: apache2
mysqlserver:
pkg.installed:
- pkgs:
- mysql-server
- mysql-client
- python-mysqldb
wordpressuser:
mysql_user.present:
- host: localhost
- password: crappypassword
- require:
- pkg: mysqlserver
wordpress:
mysql_database.present:
- require:
- pkg: mysqlserver
wordpress_db:
mysql_grants.present:
- grant: all privileges
- database: wordpress.*
- user: wordpressuser
- require:
- mysql_database: wordpress
- mysql_user: wordpressuser
/var/www:
file.recurse:
- source: salt://wordpress/wordpress
- clean: True
- user: www-data
- group: www-data
- dir_mode: 755
- file_mode: 644
- include_empty: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment