Clone git repos for images via git protocol

For performance reasons--using git protocol instead of HTTP should
speed up cloning significantly on CentOS 6 in particular.

Change-Id: I37fadb1366eab5d66ec8e95945bea9c2c0251fcb
This commit is contained in:
Jeremy Stanley 2014-02-12 21:35:06 +00:00
parent 522f4a2ded
commit f5231fd0a3
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ def main():
# YAML module which is not in the stdlib.
m = PROJECT_RE.match(line)
if m:
project = 'https://git.openstack.org/%s' % m.group(1)
project = 'git://git.openstack.org/%s' % m.group(1)
print run_local(['git', 'clone', project, m.group(1)],
cwd='/opt/git')

View File

@ -25,7 +25,7 @@ PYPY=${5:-false}
sudo hostname $HOSTNAME
wget https://git.openstack.org/cgit/openstack-infra/config/plain/install_puppet.sh
sudo bash -xe install_puppet.sh
sudo git clone https://review.openstack.org/p/openstack-infra/config.git \
sudo git clone git://review.openstack.org/p/openstack-infra/config.git \
/root/config
sudo /bin/bash /root/config/install_modules.sh
if [ -z "$NODEPOOL_SSH_KEY" ] ; then