Make script easier to read
Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
parent
7204cf8355
commit
a6a1b94483
|
@ -1,13 +1,18 @@
|
||||||
# E.G. to boot 20 instances
|
# E.G. to boot 20 instances
|
||||||
|
|
||||||
|
```bash
|
||||||
openstack server create --user-data isen-postinstall.sh --min 20 --max 20 --flavor d2-4 --image 'Debian 11' --net Ext-Net --key-name arnaud-choupinette isen
|
openstack server create --user-data isen-postinstall.sh --min 20 --max 20 --flavor d2-4 --image 'Debian 11' --net Ext-Net --key-name arnaud-choupinette isen
|
||||||
|
```
|
||||||
|
|
||||||
# Then copy/paste openrc files into the servers so that students can do
|
# Then copy/paste openrc files into the servers so that students can do
|
||||||
# source /root/openrc
|
# source /root/openrc
|
||||||
|
|
||||||
# Clean the project, from k8s-1
|
# Clean the project, from k8s-1
|
||||||
|
|
||||||
|
```bash
|
||||||
for o in $(ls -1 /root/openrc_is*) ; do
|
for o in $(ls -1 /root/openrc_is*) ; do
|
||||||
source $o
|
source $o
|
||||||
echo "Working on $o"
|
echo "Working on $o"
|
||||||
bash /root/bootstrap-openstack-k8s/extra/clean-project.sh
|
bash /root/bootstrap-openstack-k8s/extra/clean-project.sh
|
||||||
done
|
done
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue