Files
openstack-manuals/doc/training-guide/training-labs/Scripts/PostInstall/PostInstall.sh
Pranav Salunke 37f62041cb Added Training Labs Automation Scripts
Removed Unwanted White Spaces.Z
Removed Cirros Image from one of the sub folder.

These scripts are meant to automate deployment of
OpenStack for training and Lab sessions.

bp/training-manuals

Change-Id: I0f46d986d154a1993b014847c2181c7b59412c87
2013-10-05 15:37:58 +05:30

53 lines
1.7 KiB
Bash

#!/bin/sh
#
# About:Setup Dependences for Virtual Box Sandbox
# meant for OpenStack Labs.
#
# Contact: pranav@aptira.com
# Copyright : Aptira @aptira,aptira.com
# License: Apache Software License (ASL) 2.0
#################################################################################
# #
# This Script will carry out few tasks after installing OpenStack. #
# #
#################################################################################
# Create Tenant
keystone tenant-create --name Os_Training
echo "Enter Tenant ID"
read $Tenant_ID
#Create User and assign required role
keystone user-create --name=trainee --pass=cloud --tenant-id $Tenant_ID --email=user_one@domain.com
echo "Enter User ID"
read $User_ID
keystone user-role-add --tenant-id $Tenant_ID --user-id $User_ID --role-id $role_id
# Create Networks
quantum net-create --tenant-id $Tenant_ID training_network
# Add Subnet
quantum subnet-create --tenant-id $Tenant_ID training_network 25.25.25.0/24
echo "Enter Subnet ID"
read $Subnet_ID
# Create Router
quantum router-create --tenant-id $Tenant_ID training_router
echo "Enter Router ID"
read $training_router
# Add Router to L3 Agent
quantum agent-list (to get the l3 agent ID)
echo "Enter L3 agent ID"
read $l3_agent_ID
quantum l3-agent-router-add $l3_agent_ID training_router
# Add Router To Subnet
quantum router-interface-add $training_router $Subnet_ID
echo "For Logging into your Cloud Via. Dashboard, use the following Credentials :"
echo "User Name: trainee"
echo "Password: cloud"