Added the ability to run jeepyb not only on the host where the Gerrit installed.
In the previous version of this script jeepyb could be run
on the same host where Gerrit installed,
because in manage_projects.py was used 'localhost' directive.
The new version jeepyb can be run on any side,
because 'localhost' directive was changed to 'GERRIT_HOST'.
Change-Id: I4faa2d0877864bdaa69bc55a6bcce882faca66df
diff --git a/jeepyb/cmd/manage_projects.py b/jeepyb/cmd/manage_projects.py
index 1dc6578..ff5b4c7 100644
--- a/jeepyb/cmd/manage_projects.py
+++ b/jeepyb/cmd/manage_projects.py
@@ -568,7 +568,7 @@
'github-config',
'/etc/github/github-projects.secure.config')
- gerrit = gerritlib.gerrit.Gerrit('localhost',
+ gerrit = gerritlib.gerrit.Gerrit(GERRIT_HOST,
GERRIT_USER,
GERRIT_PORT,
GERRIT_KEY)
@@ -596,7 +596,10 @@
continue
project_git = "%s.git" % project
- remote_url = "ssh://localhost:%s/%s" % (GERRIT_PORT, project)
+ remote_url = "ssh://%s:%s/%s" % (
+ GERRIT_HOST,
+ GERRIT_PORT,
+ project)
git_opts = dict(upstream=upstream,
repo_path=repo_path,
remote_url=remote_url)