-
Notifications
You must be signed in to change notification settings - Fork 1
/
tripleo-reproducer.sh
executable file
·33 lines (30 loc) · 2.1 KB
/
tripleo-reproducer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
if [ "$TEARDOWN" = "true" ]; then
rm -rf /var/tmp/reproduce/git /var/tmp/reproduce/roles/
git clone -b in_container https://github.com/bogdando/ansible-role-tripleo-ci-reproducer /var/tmp/reproduce/git/ansible-role-tripleo-ci-reproducer
git clone -b dev https://github.com/bogdando/tripleo-quickstart /var/tmp/reproduce/git/tripleo-quickstart
git clone -b dev https://github.com/bogdando/tripleo-quickstart-extras /var/tmp/reproduce/git/tripleo-quickstart-extras
mkdir -p /var/tmp/reproduce/roles/ /var/tmp/reproduce/playbooks
ln -sf /var/tmp/reproduce/git/tripleo-quickstart-extras/roles/* /var/tmp/reproduce/roles/
ln -sf /var/tmp/oooq/roles/* /var/tmp/reproduce/roles/
ln -sf /var/tmp/reproduce/git/tripleo-quickstart-extras/roles/* /var/tmp/reproduce/roles/
ln -sf /var/tmp/oooq/roles/* /var/tmp/reproduce/roles/
ln -sf /var/tmp/oooq/library/* /var/tmp/reproduce/library/
ln -sf /var/tmp/reproduce/git/tripleo-quickstart-extras/playbooks/* /var/tmp/reproduce/playbooks/
ln -sf /var/tmp/oooq/playbooks/* /var/tmp/reproduce/playbooks/
ln -sf /var/tmp/reproduce/git/ansible-role-tripleo-ci-reproducer /var/tmp/reproduce/roles/
ln -sf /var/tmp/reproduce/git/ansible-role-tripleo-ci-reproducer/playbooks/* /var/tmp/reproduce/playbooks/
ln -sf /var/tmp/reproduce/git/ansible-role-tripleo-ci-reproducer/playbooks/* ${LWD}/playbooks/
tar xf reproducer-zuul-based-quickstart.tar ||:
else
git -C /var/tmp/reproduce/git/tripleo-quickstart pull
git -C /var/tmp/reproduce/git/tripleo-quickstart-extras pull
git -C /var/tmp/reproduce/git/ansible-role-tripleo-ci-reproducer pull
fi
cp -f launcher-playbook.yaml /var/tmp/reproduce/
./reproducer-zuul-based-quickstart.sh -w /var/tmp/reproduce -e @extra.yaml -l \
--ssh-key-path /var/tmp/.ssh/gerrit -e create_snapshot=true -e os_autohold_node=false \
-e zuul_build_sshkey_cleanup=false -e container_mode=docker -e ansible_user=${1:-zuul} \
-e upstream_gerrit_user=$USER -e rdo_gerrit_user=$USER -e ansible_user_id=$USER -e non_root_user=$USER \
-e non_root_group=$USER -e virthost_provisioning_interface=noop -e teardown=$TEARDOWN -e install_path=$LWD