DevStack localrc 模板
DevStack的配置文件總是很難寫,文檔不全,容易遺漏配置項。
根據網上的模版,自己製作了一個比較全面的樣板。
devstack keystone env變量:source openrc admin admin
source openrc demo demo
localrc文件內容:
# Misc
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
RABBIT_PASSWORD=password
# Reclone each time
RECLONE=yes
## For Keystone, UUID or PKI
KEYSTONE_TOKEN_FORMAT=UUID
## For Swift
#SWIFT_REPLICAS=1
#SWIFT_HASH=011688b44136573e209e
# Enable Logging
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs
# Pre-requisite
ENABLED_SERVICES=rabbit,mysql,key
## If you want ZeroMQ instead of RabbitMQ (don't forget to un-declare 'rabbit' from the pre-requesite)
#ENABLED_SERVICES+=,-rabbit,-qpid,zeromq
## If you want Qpid instead of RabbitMQ (don't forget to un-declare 'rabbit' from the pre-requesite)
#ENABLED_SERVICES+=,-rabbit,-zeromq,qpid
# Horizon (Dashboard UI) - (always use the trunk)
ENABLED_SERVICES+=,horizon
HORIZON_REPO=https://github.com/openstack/horizon
HORIZON_BRANCH=master
NEUTRON_CREATE_INITIAL_NETWORKS=False
# Nova - Compute Service
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch
IMAGE_URLS+=",http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img"
# Nova Network - If you don't want to use Neutron and need a simple network setup (old good stuff!)
#ENABLED_SERVICES+=,n-net
## Nova Cells
#ENABLED_SERVICES+=,n-cell
# Glance - Image Service
ENABLED_SERVICES+=,g-api,g-reg
# Swift - Object Storage
#ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
# Neutron - Networking Service
# If Neutron is not declared the old good nova-network will be used
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron
NEUTRON_REPO=https://github.com/openstack/neutron
NEUTRON_BRANCH=master
## Neutron - L2-Agent
Q_AGENT=openvswitch
#Q_AGENT=linuxbridge
## Neutron - ML2 plugins
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch
Q_ML2_PLUGIN_TYPE_DRIVERS=gre
## Neutron - Load Balancing
#ENABLED_SERVICES+=,q-lbaas
## Neutron - VPN as a Service
#ENABLED_SERVICES+=,q-vpn
## Neutron - Firewall as a Service
#ENABLED_SERVICES+=,q-fwaas
# Flat configuration
Q_PLUGIN=ml2
Q_DVR_MODE=legacy
ENABLE_TENANT_TUNNELS=False
PHYSICAL_NETWORK=default
LB_PHYSICAL_INTERFACE=eth1
Q_ML2_TENANT_NETWORK_TYPE=flat
# VLAN configuration
#Q_PLUGIN=ml2
#ENABLE_TENANT_VLANS=True
# GRE tunnel configuration
Q_PLUGIN=ml2
ENABLE_TENANT_TUNNELS=True
TENANT_TUNNEL_RANGE=1:100
Q_ML2_TENANT_NETWORK_TYPE=gre
# VXLAN tunnel configuration
#Q_PLUGIN=ml2
#Q_ML2_TENANT_NETWORK_TYPE=vxlan
#Q_ML2_PLUGIN_VXLAN_TYPE_OPTIONS=(vni_ranges=1:100)
# Cinder - Block Device Service
#ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
# Heat - Orchestration Service
#ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
#IMAGE_URLS+=",http://fedorapeople.org/groups/heat/prebuilt-jeos-images/F17-x86_64-cfntools.qcow2"
# Ceilometer - Metering Service (metering + alarming)
#ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api
#ENABLED_SERVICES+=,ceilometer-alarm-notify,ceilometer-alarm-eval
# Apache fronted for WSGI, keystone,swift
APACHE_ENABLED_SERVICES+=keystone