Skip to content

Instantly share code, notes, and snippets.

/test

Created August 2, 2013 15:12
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 anonymous/6140645 to your computer and use it in GitHub Desktop.
Save anonymous/6140645 to your computer and use it in GitHub Desktop.
wordpress-new:
cmd.script:
- cwd: /var/www/
- source: salt://wordpress/install-new.sh
- unless: test -f /var/wp-data/db.sql
- order: last
# The shell script below needs to be executed every 5 minutes,
# but only after the wordpress-new command has completed
/etc/mysql/mysqldump.sh:
file.managed:
- source: salt://mysql/mysqldump.sh
- mode: 744
cron.present:
- user: root
- minute: '*/5'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment