-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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