Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make git repository setup optional #864

Merged
merged 5 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions ops/inventories/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ all:
ansible_python_interpreter: /usr/bin/python3
ansible_ssh_private_key_file: ~/.ssh/ota-vagrant
services_repository: https://github.com/OpenTermsArchive/contrib-declarations.git
snapshots_repository: git@github.com:OpenTermsArchive/contrib-snapshots.git
snapshots_branch: master
versions_repository: git@github.com:OpenTermsArchive/contrib-versions.git
versions_branch: main
snapshots_repository: git@github.com:OpenTermsArchive/sandbox-snapshots.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to do this for a long time, thank you! 👍

versions_repository: git@github.com:OpenTermsArchive/sandbox-versions.git

3 changes: 0 additions & 3 deletions ops/inventories/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ all:
51.89.227.206:
config_file_name: contrib
services_repository: https://github.com/OpenTermsArchive/contrib-declarations.git
snapshots_repository: git@github.com:OpenTermsArchive/contrib-snapshots.git
snapshots_branch: master
versions_repository: git@github.com:OpenTermsArchive/contrib-versions.git
versions_branch: main
dating:
hosts:
vps-99ae1d89.vps.ovh.net:
Expand Down
4 changes: 4 additions & 0 deletions ops/roles/ota/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
- update-declarations

- include_tasks: database.yml
name: Setup snapshots git repository
when: snapshots_repository is defined
vars:
name: snapshots
repository: '{{ snapshots_repository }}'
Expand All @@ -81,6 +83,8 @@
- update

- include_tasks: database.yml
name: Setup versions git repository
when: versions_repository is defined
vars:
name: versions
repository: '{{ versions_repository }}'
Expand Down