Skip to content

Commit

Permalink
Merge pull request #22 from tulibraries/dag-git-clone-dir-override
Browse files Browse the repository at this point in the history
adding DAG-related git clone action for code not in DAGs dir
  • Loading branch information
dkinzer authored May 24, 2019
2 parents 5e80ae7 + 40fd1fa commit 9c4cd72
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ tests/roles/

# Molecule
.molecule

# Travis / CI related
.ruby-version
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ deploy:
- $TRAVIS_TAG.tar.gz
- $TRAVIS_TAG.zip
api_key:
secure: QBfV53ur+n61pruhD30PD8CCp3R+M5fnl8+7J2vy7tzyspvtRMs3x9nJTihHAZ0Y4qjZ+fvQ2RsW80hONlMi+DaY+vrEqhhjZ4YHicaJV/tWzGAq4R6YjcA98OpW94R7i1LSMBh0+ncXzzLZnQeR/NzB7co1gkIXV5tKXZLQsL11Oz7cuJGGrFVdfhTXDgl+zTigno6nvyXHpSqDAoZ3p16wyp7vYtJicEkWa+YwsdYCnwuLjOg8jwrOvsUopH1UOnqRv5tOaFM01uXUIJqNU/Uy3AaaH7nD9J4pYhe9tHSSeITnsdiTa53IFVZrcVwrvZYftp9mGjCKQiZohDHvOJbQbSv2AojTRPeEYfum14+0kBYQmiRRVh5L2geEddXA7kU9waSF1GO9YvCJrEtDIfLTioxJXUxD0i5u2pq+ZJ0JV7D9WLdq54dR28tHZYXwOxe2WnwhCaax/WivFoYvtIL1FXybJcEF9d9tZCLgNUbABaLSfBrVQQ55Tx0mKqHQOccy3+E5t9PLVG6CFK2b9n5iogrnkOaz49/2cmVHYqiQwp1KYzYvCs7At9sTMv0+jlblVEikKuLSwpiyMszWpcAk8g8T236FwXxrBEHXnfuDjmrHxjK9HX91C16gTjeyu68T4XVVUbYTNsWLNEsJEnmIXrmhuy+EHoayIWrkk3w=
secure: AGUiZgxfZVG5c6EvV+n6malKxO3BNDDRfJiHpW+G9zMGnZNTL4Vmmn3tM/rVZ9jvcYHE6nbTvS1GiFftKZ34i/PPgWFeMAUXeX4S8vMXDIpB9V2X9tfTnRxpdMGZtnPL/m2e7ThNXH5djY4W/bAIb/3EcezK5mTDiaLfq0A2DfhYLXoqEprv21Nz1Mq9cP5rpZAMgdv0MYKjovZF3+hyVVkz3hEdDMHgPD/tFszfF3k1T2LVNkvYcq9lEAeJ51BG1hp2vbokd2SBKamyq+S6VvKpN8ysijWVO7CRseXmEbocksDgOi2iBZ/4aalflm/bt/rg0vY75DEwtQ7+ErXkcGU/ojeyRkgWayLdifkcSUqMRsnrmQngGSPEABMV2FThuafdvywZ4WHoqPQls0a2yxJI+nZ38dzCQZ64dTgexGAyCs/goPmmhINloNlFgUI2B6FK42CKXg8xov/PlM/ev20P7Prjk3IuR5PIDWENU2CEXkFYj8A750AXoRVu+BrN37h1xUFA1O92xs2mvjScELxN/t9xGyFKRzLCoufM9sMU4NtZOF5M6sBfioyQvq70Suk96TaZTPTaP5ZuUlkIoDATpsmd4yDa3QiVvlKg+oxvWoG4zyTERAX2H7MtXUisFEEc09wV3ee5/XyCdiK5rZ/OdnHZpXziSE5xHdhXbK4=
on:
repo: tulibraries/ansible-role-airflow
tags: true
Expand Down
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ dags_git_repositories:
branch_or_release: "master"
pipfile: true
pip_requirements: false
dags_related_git_repositories:
- repo: "https://github.com/tulibraries/tul_cob.git"
dest_folder: "$HOME/tul_cob"
branch_or_release: "master"

airflow_dag_system_dependencies:
- name: "@Development tools"
Expand Down
13 changes: 13 additions & 0 deletions tasks/manage_dags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@
with_items:
- "{{ dags_git_repositories }}"

# For DAG-Related Git Repos, clone designated branch or release to $HOME
- name: 'CONFIG | DAGS | Clone listed DAG-related git repositories'
become_user: "{{ airflow_user_name }}"
become: true
git:
repo: "{{ item.repo }}"
dest: "{{ item.dest_folder }}"
clone: true
force: true
version: "{{ item.branch_or_release }}"
with_items:
- "{{ dags_related_git_repositories }}"


# Convert Pipfile to Requirements File
- name: 'CONFIG | DAGS | Convert Pipfile to requirements.txt'
Expand Down

0 comments on commit 9c4cd72

Please sign in to comment.