-
Notifications
You must be signed in to change notification settings - Fork 34
/
settings
62 lines (52 loc) · 2.04 KB
/
settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#####################################################################
# You can create a settings.local file and override these settings #
# from there, allowing you to `git pull` without conflicts! #
#####################################################################
# General Settings
LIBVIRT_TYPE=${LIBVIRT_TYPE:-kvm} # Currently supports kvm or qemu
# MySQL Server Settings
MYSQL_HOST="127.0.0.1"
MYSQL_ROOT_PASS="letmein"
MYSQL_NOVA_PASS="letmeinN"
MYSQL_GLANCE_PASS="letmeinG"
MYSQL_KEYSTONE_PASS="letmeinK"
MYSQL_HORIZON_PASS="letmeinH"
# Controller Node
HOST_IP="192.0.2.1" # Do actually change this! This should be an IP address accessible by your end users. Not 127.0.0.1.
# Passwords
ADMIN_PASSWORD="letmein" # Password for the "admin" user
SERVICE_TOKEN="abcdef123" # Pick something random-ish A-Za-z0-9 only. This is a password. Make it look like one.
# Networking and IPs
PUBLIC_INTERFACE="eth0" # Interface for Floating IP traffic
VLAN_INTERFACE="eth1" # Interface for Fixed IP VLAN traffic
FLOATING_RANGE="192.168.20.1/24"
FIXED_RANGE_NET="172.16.0.0"
FIXED_RANGE_BITS="12"
FIXED_RANGE_MASK="255.240.0.0"
FIXED_RANGE_NETWORK_SIZE="256"
FIXED_RANGE_NETWORK_COUNT="16"
# Misc
REGION="nova" # Region name - "nova" is the default, and probably the most reliable withoit extra setup!
# Load overrides from settings.local if it exists
if [ -f settings.local ]
then
. settings.local
fi
# Check for kvm (hardware based virtualization). If unable to initialize
# kvm, we drop back to the slower emulation mode (qemu). Note: many systems
# come with hardware virtualization disabled in BIOS.
if [[ "$LIBVIRT_TYPE" == "kvm" ]]; then
modprobe kvm || true
if [ ! -e /dev/kvm ]; then
LIBVIRT_TYPE=qemu
fi
fi
# Dont change anything below here!
FIXED_RANGE="${FIXED_RANGE_NET}/${FIXED_RANGE_BITS}"
export NOVA_PROJECT_ID="admin" # Tenant
export NOVA_USERNAME="admin" # Username
export NOVA_API_KEY=$ADMIN_PASSWORD
export NOVA_URL="http://$HOST_IP:5000/v2.0/"
export NOVA_VERSION=1.1
export NOVA_REGION_NAME=$REGION
COUNT=1