summaryrefslogtreecommitdiffstats
path: root/foreman
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2015-09-01 00:55:56 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-09-01 00:55:56 +0000
commit52639193804c6da3765066ce0f2aa365d381f897 (patch)
tree9542cea849f8a7e84750a55c30291e8711bb1e2d /foreman
parent24f395d3bf5b6bf3c123a152cae044d156b7a7d9 (diff)
parent8ce84b06eb628e3b1a2145a3bfda75ca12082edb (diff)
Merge "Fixes puppet modules to come from Genesis repo"
Diffstat (limited to 'foreman')
-rwxr-xr-xforeman/ci/deploy.sh29
1 files changed, 8 insertions, 21 deletions
diff --git a/foreman/ci/deploy.sh b/foreman/ci/deploy.sh
index 59254d1..9c1447b 100755
--- a/foreman/ci/deploy.sh
+++ b/foreman/ci/deploy.sh
@@ -476,20 +476,13 @@ clean_tmp() {
}
##clone genesis and move to node vm dir
-##params: none
-##usage: clone_bgs
+##params: destination directory
+##usage: clone_bgs /tmp/myvm/
clone_bgs() {
- cd /tmp/
- rm -rf /tmp/genesis/
-
- ##clone artifacts and move into foreman_vm dir
- if ! GIT_SSL_NO_VERIFY=true git clone https://gerrit.opnfv.org/gerrit/genesis.git; then
- printf '%s\n' 'deploy.sh: Unable to clone genesis repo' >&2
- exit 1
- fi
-
- mv -f /tmp/genesis/foreman/ci $vm_dir/foreman_vm
- rm -rf /tmp/genesis/
+ script=`realpath $0`
+ script_dir="`dirname "$script"`"
+ cp -fr $script_dir/ $1
+ cp -fr $script_dir/../../common/puppet-opnfv $1
}
##validates the network settings and update VagrantFile with network settings
@@ -1007,13 +1000,7 @@ start_virtual_nodes() {
rm -rf /tmp/genesis/
##clone genesis and move into node folder
- if ! GIT_SSL_NO_VERIFY=true git clone https://gerrit.opnfv.org/gerrit/genesis.git; then
- printf '%s\n' 'deploy.sh: Unable to clone vagrant repo' >&2
- exit 1
- fi
-
- mv -f /tmp/genesis/foreman/ci $vm_dir/$node
- rm -rf /tmp/genesis/
+ clone_bgs $vm_dir/$node
cd $vm_dir/$node
@@ -1230,7 +1217,7 @@ main() {
install_vagrant
clean_tmp
verify_vm_dir
- clone_bgs
+ clone_bgs $vm_dir/foreman_vm
configure_network
configure_virtual
start_foreman