Skip to content

Instantly share code, notes, and snippets.

@jcockhren
Created January 13, 2015 14:49
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 jcockhren/f5038a5e213700056cba to your computer and use it in GitHub Desktop.
Save jcockhren/f5038a5e213700056cba to your computer and use it in GitHub Desktop.
salt module from state
include:
- frameworks.php
wordpress-deps:
pkg.installed:
- pkgs:
- memcached
- mysql-server
- python-mysqldb
- apache2
- php5-mysql
wordpress:
module.run:
- name: s3.get
- bucket: mycoolpackages
- local_file: /tmp/wp.tgz
- path: wordpress/wordpress-3.9.tar.gz
archive:
- extracted
- name: /var/www/
- archive_format: tar
- source: file:///tmp/wp.tgz
- source_hash: md5=ffffffffffffffffffffffffffffffff
- tar_options: z
- if_missing: /var/www/wordpress/
service:
- running
- name: mysql
- enable: True
- require:
- pkg: wordpress-deps
/var/www/wordpress:
module.run:
- name: file.chown
- path: /var/www/wordpress
- user: www-data
- group: www-data
apache2:
module.run:
- name: service.restart
- m_name: apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment