Openstack - Deploy training labs

I'm currently working to deploy quickly OpenStack based training lab to provide a platform for practical exercises for training sessions.

According to the hosted training session, the needs may differ significantly and we need to quickly clean and recreate a "training" tenant.

I have developed a quick helper to produce a new environment in short term: buildlab.sh

Here is an usage example:

 1# Following command will create:
 2#  * instance(s) named "training"
 3#  * based on ubuntu image
 4#  * start 10* instances
 5#  * append index starting from 1
 6#  * 5Gb disk per instance
 7#  * sizing based on flavor: m1.tiny
 8#  * connected to network: training_net
 9#  * security group applied:  training_sec
10#  * ssh key will be: mysshkey
11#  * post costumization from script: postconfig_training.sh
12#  * attach floating IP from the "MyPool" repository
13
14./buildlab.sh --name "training" \
15              --image "Ubuntu 16.04 Xenial" \
16              --count 10 \
17              --start_index 1 \
18              --volume_size 5 \
19              --flavor_name "m1.tiny" \
20              --network_name "training_net" \
21              --sec_group "training_sec" \
22              --key_name "mysshkey" \
23              --postcusto "./postconfig_training.sh" \
24              --floating_pool "MyPool"
comments powered by Disqus