Skip to content

Instantly share code, notes, and snippets.

@viq
Created March 27, 2014 18:45
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 viq/9815057 to your computer and use it in GitHub Desktop.
Save viq/9815057 to your computer and use it in GitHub Desktop.
Do I need the prereq in all those places?
include:
- gitlab.gitlab-shell
- gitlab.gitlab
gitlab-backup:
cmd.wait:
- user: git
- pwd: /home/git/gitlab
- shell: /bin/bash
- name: bundle exec rake gitlab:backup:create RAILS_ENV=production
- prereq:
- git: gitlab-git
- git: gitlab-shell-git
gitlab-stop:
file:
- copy
- name: /home/git/gitlab/public/index.html
- source: /home/git/gitlab/public/deploy.html
- require:
- cmd: gitlab-backup
- prereq:
- git: gitlab-shell-git
- git: gitlab-git
service:
- dead
- name: gitlab-service
- require:
- file: gitlab-stop
- prereq:
- git: gitlab-shell-git
- git: gitlab-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment