Skip to content

Commit c2eb75a

Browse files
committed
cleanup repo
1 parent 0644eef commit c2eb75a

File tree

7 files changed

+36
-94
lines changed

7 files changed

+36
-94
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vagrant
File renamed without changes.

create_and_start_vms.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
# setup and start virtual machines
4+
vagrant up
5+
6+
# remove all ssh known keys and check connection
7+
gawk -i inplace '!/^192.168.122./' ~/.ssh/known_hosts
8+
9+
# check if we can connect to the different machines
10+
for i in $(seq 1 13); do
11+
ip=$((150+$i))
12+
hostname=$(ssh root@192.168.122.$ip hostname)
13+
14+
if [ "$hostname" = "test-$i" ]; then
15+
echo "hostname at 192.168.122.$ip matches"
16+
else
17+
echo "hostname $hostname at ip 192.168.122.$ip is wrong"
18+
exit -1
19+
fi
20+
done
21+
22+
echo "all virtual machines created!"
23+
24+
# run ansible playbooks
25+
ansible-playbook -i hosts.ini tasks.yaml
26+
27+
# loop over hosts
28+
echo "feel free to run tests now.."
29+
exit 0

teardown_vms.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# bring down everything again
4+
echo "destroy test virtual machines"
5+
vagrant destroy -f
6+
echo "all done, check logs"

testrun.sh

Lines changed: 0 additions & 57 deletions
This file was deleted.

vagrant/check_ssh_connection.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

vagrant/run_tests.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)