From f5231fd0a3089fa513676e3b3be3fe421f8d3f1d Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 12 Feb 2014 21:35:06 +0000 Subject: [PATCH] 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 --- .../openstack_project/files/nodepool/scripts/cache_git_repos.py | 2 +- .../openstack_project/files/nodepool/scripts/prepare_node.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/files/nodepool/scripts/cache_git_repos.py b/modules/openstack_project/files/nodepool/scripts/cache_git_repos.py index 6b5bba6cbc..da27f0a791 100755 --- a/modules/openstack_project/files/nodepool/scripts/cache_git_repos.py +++ b/modules/openstack_project/files/nodepool/scripts/cache_git_repos.py @@ -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') diff --git a/modules/openstack_project/files/nodepool/scripts/prepare_node.sh b/modules/openstack_project/files/nodepool/scripts/prepare_node.sh index 75c70167d8..9e092acfbb 100755 --- a/modules/openstack_project/files/nodepool/scripts/prepare_node.sh +++ b/modules/openstack_project/files/nodepool/scripts/prepare_node.sh @@ -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