Few changes for creating the jumps correctly
Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user