Compare commits
3 Commits
19145e1983
...
523e4e833f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
523e4e833f | ||
|
|
ca79ad3703 | ||
|
|
843607d932 |
@@ -1,3 +1,6 @@
|
|||||||
# Trainings
|
# Trainings
|
||||||
|
|
||||||
A git repo that regroup all trainings I do
|
A git repo that regroup all trainings I do
|
||||||
|
|
||||||
|
# Bootstrap the servers
|
||||||
|
see userdata/
|
||||||
|
|||||||
10
bootstrap.sh
10
bootstrap.sh
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
openstack server create \
|
|
||||||
--key-name arnaud-ovh \
|
|
||||||
--net Ext-Net \
|
|
||||||
--image 'Debian 10' \
|
|
||||||
--flavor d2-4 \
|
|
||||||
--user-data userdata/ansible101.sh \
|
|
||||||
--min 12 \
|
|
||||||
--max 12 \
|
|
||||||
isen
|
|
||||||
16
clean.sh
16
clean.sh
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
todelete=""
|
|
||||||
|
|
||||||
IFS=$'\n'
|
|
||||||
for line in $(openstack server list -f value -c ID -c Name) ; do
|
|
||||||
id=$(echo $line | awk '{ print $1}')
|
|
||||||
name=$(echo $line | awk '{ print $2}')
|
|
||||||
|
|
||||||
if [[ "$name" =~ isen ]]; then
|
|
||||||
echo "Deleting $name"
|
|
||||||
todelete="$todelete $id"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
eval "openstack server delete $todelete"
|
|
||||||
@@ -111,6 +111,8 @@ title.print "Clone trainings"
|
|||||||
|
|
||||||
cd /root/
|
cd /root/
|
||||||
git clone https://git.arnaudmorin.fr/arnaud/trainings.git
|
git clone https://git.arnaudmorin.fr/arnaud/trainings.git
|
||||||
|
# Allow file protocol - this is useful for the git submodule training
|
||||||
|
git config --global protocol.file.allow always
|
||||||
|
|
||||||
title.print "Building docker image 'demo'"
|
title.print "Building docker image 'demo'"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user