Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
parent
6fe575b9ac
commit
cd0ee9007f
|
@ -39,9 +39,9 @@ pip install python-openstackclient
|
|||
|
||||
## Load your openstack credentials
|
||||
|
||||
Load in your shell the variables that permit to talk with your openstack
|
||||
Load in your shell the variables that allow you to communicate with OVH OpenStack Public Cloud
|
||||
```
|
||||
source /root/openrc_isenx # replace x with your isen number
|
||||
source /root/openrc
|
||||
```
|
||||
|
||||
## Instance
|
||||
|
@ -64,7 +64,7 @@ ssh-keygen -t rsa -f ~/.ssh/id_rsa -N ""
|
|||
|
||||
Upload the public key to the cloud
|
||||
```
|
||||
openstack keypair create --public-key ~/.ssh/id_rsa.pub zob
|
||||
openstack keypair create --public-key ~/.ssh/id_rsa.pub isen
|
||||
```
|
||||
|
||||
You can list the available keys and see the detail of a key with the following commands:
|
||||
|
@ -72,7 +72,7 @@ You can list the available keys and see the detail of a key with the following c
|
|||
openstack keypair list
|
||||
|
||||
# Display the detail of a keypair:
|
||||
openstack keypair show mykey
|
||||
openstack keypair show isen
|
||||
```
|
||||
|
||||
#### image
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
# E.G. to boot 20 instances
|
||||
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
|
||||
# source /root/openrc
|
||||
|
||||
# Clean the project:
|
||||
openstack keypair list -f value -c Name | xargs openstack keypair delete
|
||||
|
||||
|
|
Loading…
Reference in New Issue