1
0

Few changes for creating the jumps correctly

Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
Arnaud M
2024-01-07 20:02:20 +01:00
parent 5c71a320eb
commit 7bfacd5880
2 changed files with 24 additions and 11 deletions

View File

@@ -1,15 +1,21 @@
# E.G. to boot 20 instances
# Create jumps
```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
c=20
openstack server create --user-data isen-postinstall.sh --min $c --max $c --flavor small --image 'Debian 12' --net public --key-name arnaud-choupinette isen
```
# Then copy/paste openrc files into the servers so that students can do
# List jumps
```bash
source /root/openrc
openstack server list -c Name -c Networks
```
# Clean the project, from k8s-1
# Delete jumps
```bash
openstack server list -c ID -c Name -f value | grep isen | awk '{print $1}' | xargs openstack server delete
```
# Clean the projects, from k8s-1
```bash
for o in $(ls -1 /root/openrc_is*) ; do