f-55: lab: provision générique des nœuds, rôle host, two installé par test/e2e #55
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
4438bb3916
commit
f713f482fa
22 changed files with 481 additions and 369 deletions
3
test/e2e/topologies/provision/hypervisor-post.sh
Executable file
3
test/e2e/topologies/provision/hypervisor-post.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
systemctl restart agent.service
|
||||
19
test/e2e/topologies/provision/hypervisor.sh
Executable file
19
test/e2e/topologies/provision/hypervisor.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
RELEASE=0.2.0rc008
|
||||
GIT_SERVER=https://git.g3e.fr/
|
||||
REPO=syonad/two
|
||||
n=0
|
||||
until curl -fsS -o /dev/null "${GIT_SERVER}"; do
|
||||
n=$((n + 1))
|
||||
[ "$n" -lt 30 ] || exit 1
|
||||
sleep 10
|
||||
done
|
||||
install -D -m 0640 "${LAB_FILES}/agent.yml" /etc/two/agent.yml
|
||||
mkdir -p /opt/two/scripts
|
||||
cd /opt/two/scripts
|
||||
for script in deploy.sh bootstrap_kvm.sh; do
|
||||
curl -fsS -o "${script}" "${GIT_SERVER}${REPO}/raw/tag/${RELEASE}/scripts/${script}"
|
||||
done
|
||||
chmod 0755 deploy.sh bootstrap_kvm.sh
|
||||
bash ./deploy.sh --noup_script -i -u "${LAB_UPLINK}" -t "${RELEASE}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue