Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
3aadce42
Commit
3aadce42
authored
9 years ago
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2903 from edx/ned/add-repo-status-script
Add show-repo-heads script for helping with diagnosis
parents
dbe0a14c
053c8060
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
playbooks/roles/edx_ansible/tasks/deploy.yml
+17
-0
playbooks/roles/edx_ansible/templates/show-repo-heads.j2
+11
-0
No files found.
playbooks/roles/edx_ansible/tasks/deploy.yml
View file @
3aadce42
...
...
@@ -35,6 +35,23 @@
-
install
-
install:configuration
-
name
:
create show-repo-heads script
template
:
>
dest={{ edx_ansible_app_dir}}/show-repo-heads
src=show-repo-heads.j2 owner={{ edx_ansible_user }} group={{ edx_ansible_user }} mode=755
tags
:
-
install
-
install:configuration
-
name
:
create a symlink for show-repo-heads script
file
:
>
src={{ edx_ansible_app_dir }}/show-repo-heads
dest={{ COMMON_BIN_DIR }}/show-repo-heads
state=link
tags
:
-
install
-
install:configuration
-
name
:
create a symlink for ansible-playbook
file
:
>
src={{ edx_ansible_venv_bin }}/ansible-playbook
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/edx_ansible/templates/show-repo-heads.j2
0 → 100644
View file @
3aadce42
#!/usr/bin/env bash
#
# Display the head commit for all our git repos
# Look in .git directories. Only two levels down to avoid virtualenvs.
for
d
in
{{
COMMON_APP_DIR
}}
/
*
/
*
/.git
;
do
d
=
$(
dirname
$d
)
echo
"----
$d
----"
git
-C
$d
log
-1
--format
=
'%ci (%h) %cn: %s %d'
done
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment