Best localrc for devstack

来源:互联网 发布:二手车统一发票软件 编辑:程序博客网 时间:2024/05/19 18:17

I simply collected all my localrc files, Feel free to grab the parts that interest you.

1, my env variables

export OS_USERNAME=admin
export OS_PASSWORD=password
export OS_TENANT_NAME=demo
export OS_AUTH_URL=http://172.16.1.122:5000/v2.0
export OS_AUTH_STRATEGY=keystone

2, localrc file

# Common
DEST=/opt/stack
#OFFLINE=true
## the ip of ovs bridge br-phy is 172.16.1.122
HOST_IP=172.16.1.122
SERVICE_HOST=$HOST_IP
CONTROL_HOST=$HOST_IP
QPID_HOST=$HOST_IP
FIXED_RANGE=10.0.1.0/24
#113 — 118, http://jodies.de/ipcalc
FLOATING_RANGE=192.168.1.112/29
Q_FLOATING_ALLOCATION_POOL=start=192.168.1.113,end=192.168.1.118
NETWORK_GATEWAY=10.0.1.1
PUBLIC_NETWORK_GATEWAY=192.168.1.1

# Misc
DATABASE_USER=root
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=ADMIN
RABBIT_PASSWORD=password

# For Keystone, UUID or PKI
KEYSTONE_TOKEN_FORMAT=UUID

# For Swift
SWIFT_REPLICAS=1
SWIFT_HASH=ADMIN

# Enable Logging
LOGFILE=$DEST/logs/stack.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=$DEST/logs

# Pre-requisite
ENABLED_SERVICES=qpid,mysql,horizon,key,g-api,g-reg

# Nova – Compute Service
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch
#IMAGE_URLS+=”,https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img”
#ENABLED_SERVICES+=,n-cell

# Swift – Object Storage
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account

# Neutron – Neutron L2/L3 Connection Service
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron

## Neutron – Neutron L4/L7 Network Service
ENABLED_SERVICES+=,q-lbaas,q-fwaas

# Neutron Agent
#Q_AGENT=linuxbridge
Q_USE_NAMESPACE=False
Q_ALLOW_OVERLAPPING_IP=False
OVS_PHYSICAL_BRIDGE=br-phy

# VLAN configuration
Q_PLUGIN=ml2
ENABLE_TENANT_VLANS=True

# GRE and VXLAN tunnel configuration
Q_PLUGIN=ml2
ENABLE_TENANT_TUNNELS=True
Q_ML2_TENANT_NETWORK_TYPE=local,flat,vlan,gre,vxlan
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge

# Cinder – Block Device Service
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch

# 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
APACHE_ENABLED_SERVICES+=keystone,swift

# Multi-host
MULTI_HOST=False
MYSQL_HOST=$CONTROL_HOST
RABBIT_HOST=$CONTROL_HOST
GLANCE_HOSTPORT=$CONTROL_HOST:9292

#HORIZON_REPO=https://github.com/openstack/horizon
#HORIZON_BRANCH=stable/grizzly

#CINDER_REPO=https://github.com/openstack/cinder.git
#CINDER_BRANCH=stable/grizzly
#CINDERCLIENT_REPO=https://github.com/openstack/python-cinderclient.git
#CINDERCLIENT_BRANCH=stable/grizzly

#NOVA_REPO=https://github.com/openstack/nova.git
#NOVA_BRANCH=stable/grizzly
#NOVACLIENT_REPO=https://github.com/openstack/python-novaclient.git
#NOVACLIENT_BRANCH=stable/grizzly

#GLANCE_REPO=https://github.com/openstack/glance.git
#GLANCE_BRANCH=stable/grizzly
#GLANCECLIENT_REPO=https://github.com/openstack/python-glanceclient.git

#KEYSTONE_REPO=https://github.com/openstack/keystone.git
#KEYSTONE_BRANCH=stable/grizzly
#KEYSTONECLIENT_REPO=https://github.com/openstack/python-keystoneclient.git
#KEYSTONECLIENT_BRANCH=stable/grizzly

#NEUTRON_REPO=https://github.com/openstack/neutron.git
#NEUTRON_BRANCH=stable/grizzly
#NEUTRONCLIENT_REPO=https://github.com/openstack/python-neutronclient.git
#NEUTRONCLIENT_BRANCH=stable/grizzly

HEAT_REPO=https://github.com/sjcorbett/heat.git
#HEAT_BRANCH=master

 

3, devstack will run following processes based on above localrc

keystone-all –config-file /etc/keystone/keystone.conf –log-config /etc/keystone/logging.conf -d –debug

glance-registry –config-file=/etc/glance/glance-registry.conf
glance-api –config-file=/etc/glance/glance-api.conf

neutron-server –config-file /etc/neutron/neutron.conf –config-file /etc/neutron/plugins/ml2/ml2_conf.ini
neutron-dhcp-agent –config-file /etc/neutron/neutron.conf –config-file=/etc/neutron/dhcp_agent.ini
neutron-l3-agent –config-file /etc/neutron/neutron.conf –config-file=/etc/neutron/l3_agent.ini –config-file /etc/neutron/fwaas_driver.ini
neutron-metadata-agent –config-file /etc/neutron/neutron.conf –config-file=/etc/neutron/metadata_agent.ini
neutron-lbaas-agent –config-file /etc/neutron/neutron.conf –config-file=/etc/neutron/services/loadbalancer/haproxy/lbaas_agent.ini

nova-api
nova-conductor
nova-compute –config-file /etc/nova/nova.conf
nova-cert
nova-scheduler –config-file /etc/nova/nova.conf
nova-objectstore

cinder-api –config-file /etc/cinder/cinder.conf
cinder-scheduler –config-file /etc/cinder/cinder.conf
cinder-volume –config-file /etc/cinder/cinder.conf

hswift-container-updater /etc/swift/container-server/1.conf
swift-account-auditor /etc/swift/account-server/1.conf
swift-object-replicator /etc/swift/object-server/1.conf
swift-container-replicator /etc/swift/container-server/1.conf
swift-object-auditor /etc/swift/object-server/1.conf
swift-container-auditor /etc/swift/container-server/1.conf
swift-account-replicator /etc/swift/account-server/1.conf
swift-account-reaper /etc/swift/account-server/1.conf
swift-container-sync /etc/swift/container-server/1.conf
swift-object-updater /etc/swift/object-server/1.conf
swift-object-auditor /etc/swift/object-server/1.conf

0 0
原创粉丝点击