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
6c3a7cf4
Commit
6c3a7cf4
authored
Oct 13, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
naming bugs
parent
9d28acfb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
playbooks/roles/gh_mirror/defaults/main.yml
+2
-2
playbooks/roles/gh_mirror/files/gh_mirror_cron.sh
+3
-0
playbooks/roles/gh_mirror/tasks/main.yml
+1
-1
No files found.
playbooks/roles/gh_mirror/defaults/main.yml
View file @
6c3a7cf4
...
...
@@ -14,6 +14,6 @@ gh_mirror_orgs:
gh_mirror_debian_pkgs
:
-
python-yaml
-
python-requests
gh_app_files
:
gh_
mirror_
app_files
:
-
gh_mirror_cron.sh
-
repo_from_orgs.py
-
repo
s
_from_orgs.py
playbooks/roles/gh_mirror/files/gh_mirror_cron.sh
View file @
6c3a7cf4
...
...
@@ -17,8 +17,11 @@ for repo_url in $(cat /var/tmp/repos.txt); do
repo_name
=
${
repo_url
##*/
}
if
[[
!
-d
$data_dir
/
$repo_name
]]
;
then
git clone
--mirror
$repo_url
$data_dir
/
$repo_name
cd
$data_dir
/
$repo_name
git update-server-info
else
cd
$data_dir
/
$repo_name
git remote update
git update-server-info
fi
done
playbooks/roles/gh_mirror/tasks/main.yml
View file @
6c3a7cf4
...
...
@@ -19,6 +19,6 @@
-
name
:
gh_mirror | create org config
template
:
src=orgs.yml.j2 dest={{ gh_mirror_app_dir }}/orgs.yml
-
name
:
copying sync scripts
-
name
:
copying sync scripts
{{ gh_mirror_app_files }}
copy
:
src={{ item }} dest={{ gh_mirror_app_dir }}/{{ item }}
with_items
:
"
{{
gh_mirror_app_files
}}"
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