Created
December 13, 2013 15:39
-
-
Save bigfleet/7946105 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| - include: dot-env.yml | |
| - include: capistrano.yml | |
| - include: bundle.yml | |
| when: $bundle | |
| - include: db.yml | |
| - include: unicorn.yml | |
| when: $unicorn | |
| - include: foreman.yml | |
| when: $foreman | |
| - include: nginx.yml | |
| when: $nginx |
This file contains hidden or 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
| - name: Setup capistrano friendly structure | |
| command: mkdir -p {{application_root}}/{{app_name}}/{{item[0]}}/{{item[1]}} creates={{application_root}}/{{app_name}}/{{item[0]}}/{{item[1]}} | |
| with_nested: | |
| - rails_environments | |
| - cap_dirs | |
| - name: Clone repo | |
| git: repo={{git_repo}} dest={{application_root}}/{{app_name}}/{{item}}/shared/cached-copy | |
| with_items: rails_environments |
This file contains hidden or 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
| - name: Copy private key | |
| copy: src=keys/deployers/{{deployer}}/id_rsa dest=/home/{{username}}/.ssh/id_rsa owner={{username}} group={{username}} mode=0600 | |
| - name: Copy public key | |
| copy: src=keys/deployers/{{deployer}}/id_rsa.pub dest=/home/{{username}}/.ssh/id_rsa.pub owner={{username}} group={{username}} mode=0644 |
This file contains hidden or 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
| - include: deployer.yml tags=app | |
| when: app | |
| - include: app.yml tags=app | |
| when: app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment