1
0

Compare commits

..

3 Commits

Author SHA1 Message Date
Arnaud M.
523e4e833f Allow file procotol to be used for submodule git training
Signed-off-by: Arnaud M. <arnaud.choupinette@mailops.fr>
2025-12-23 14:34:43 +01:00
Arnaud M.
ca79ad3703 Remove old unused scripts
Signed-off-by: Arnaud M. <arnaud.choupinette@mailops.fr>
2025-12-23 14:34:29 +01:00
Arnaud M.
843607d932 Add info where to bootstrap servers
Signed-off-by: Arnaud M. <arnaud.choupinette@mailops.fr>
2025-12-23 14:34:06 +01:00
4 changed files with 5 additions and 26 deletions

View File

@@ -1,3 +1,6 @@
# Trainings
A git repo that regroup all trainings I do
# Bootstrap the servers
see userdata/

View File

@@ -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

View File

@@ -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"

View File

@@ -111,6 +111,8 @@ title.print "Clone trainings"
cd /root/
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'"