-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathenv.sh
More file actions
23 lines (16 loc) · 689 Bytes
/
env.sh
File metadata and controls
23 lines (16 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Setup OpenStack authentication environment
export OS_AUTH_URL=http://<IP>:5000/v2.0
export OS_TENANT_ID=<UUID>
export OS_TENANT_NAME="admin"
export OS_USERNAME="snemetz"
# With Keystone you pass the keystone password.
echo "Please enter your OpenStack Password: "
read -sr OS_PASSWORD_INPUT
export OS_PASSWORD=$OS_PASSWORD_INPUT
# If your configuration has multiple regions, we set that information here.
# OS_REGION_NAME is optional and only valid in certain environments.
export OS_REGION_NAME="RegionOne"
# Don't leave a blank variable, unset it if it was empty
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
export PS1="[\u@\h \W($OS_TENANT_NAME)]\$ "