From cd0ee9007fc913434970c5e1dc6421fa7e32bf34 Mon Sep 17 00:00:00 2001 From: Arnaud M Date: Sat, 4 Mar 2023 21:44:32 +0100 Subject: [PATCH] up Signed-off-by: Arnaud M --- cloud/training/101.md | 8 ++++---- userdata/README.md | 9 ++++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/cloud/training/101.md b/cloud/training/101.md index 30bcbc3..7229298 100644 --- a/cloud/training/101.md +++ b/cloud/training/101.md @@ -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 diff --git a/userdata/README.md b/userdata/README.md index c4f5438..f19b6b7 100644 --- a/userdata/README.md +++ b/userdata/README.md @@ -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 +