This repository has been archived by the owner on Feb 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from dgreisen-cfpb/master
Pantheon deployment refactor
- Loading branch information
Showing
14 changed files
with
90 additions
and
34 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
repositories: | ||
- https://github.com/cfpb/dash.git@b10aee8c41a15a71938e7bcd5914ffb74767a2e5 | ||
- https://github.com/cfpb/[email protected] | ||
- https://github.com/cfpb/[email protected] | ||
- https://github.com/cfpb/[email protected] | ||
- https://github.com/cfpb/[email protected] | ||
- https://github.com/cfpb/[email protected] | ||
unitybox_repository: https://github.com/cfpb/[email protected] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../unitybox/ansible/library |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
- name: ensure git is on the machine | ||
yum: name=git | ||
|
||
- name: ensure the repo is up-to-date | ||
git: repo=https://github.com/cfpb/devdash.git dest={{ root_dir }} force=yes | ||
- name: clone pantheon repo | ||
clone_repos: | ||
urls: | ||
- "{{ project_repository }}" | ||
processes: 1 | ||
install_dir: "{{ project_dir }}" | ||
ensure_pinned: "{{ pin_versions }}" | ||
|
||
- name: ensure kratos is installed and up-to-date | ||
git: repo=https://github.com/cfpb/kratos.git dest={{ kratos_dir }} force=yes | ||
|
||
- name: ensure moirai is installed and up-to-date | ||
git: repo=https://github.com/cfpb/moirai.git dest={{ moirai_dir }} force=yes | ||
|
||
- name: ensure dash is installed and up-to-date | ||
git: repo=https://github.com/cfpb/dash.git dest={{ dash_dir }} force=yes | ||
- name: clone dependent sub-repos | ||
clone_repos: | ||
urls: "{{ repositories }}" | ||
processes: 5 | ||
install_dir: "{{ repos_dir }}" | ||
ensure_pinned: "{{ pin_versions }}" | ||
|
||
# todo handle migrations |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
## | ||
# Clones the Unitybox repo which contains various helper functions, | ||
# roles and common modules that we use in setting up this repo | ||
## | ||
|
||
# Clone the unitybox repo if it doesn't exist | ||
if [ ! -d "../unitybox" ]; then | ||
echo "\033[1m Installing unitybox...\033[0m" | ||
git clone https://github.com/Ooblioob/unitybox.git ../unitybox | ||
fi | ||
|
||
cd ../unitybox | ||
|
||
# Update to the latest version | ||
echo "\033[1m Updating unitybox...\033[0m" | ||
git fetch origin master | ||
git reset --hard HEAD | ||
git checkout master | ||
|
||
echo "\033[1m Update completed!\033[0m" |