总结了一下devstack配置文件,基本包括了所有的网络配置模式和所有的openstack组件,根据自己的需要打开和关闭相应的注释即可,具体解释参见注释。
  1. # Misc
  2. DATABASE_PASSWORD=123456 
  3. ADMIN_PASSWORD=123456 
  4. SERVICE_PASSWORD=123456 
  5. SERVICE_TOKEN=123456 
  6. RABBIT_PASSWORD=123456 
  7.  
  8. # Reclone each time 
  9. RECLONE=true 
  10.   
  11. # Python enviroments 
  12. #OFFLINE=true 
  13.   
  14. ## For Keystone 
  15. KEYSTONE_TOKEN_FORMAT=PKI 
  16.   
  17. ## For Swift 
  18. #SWIFT_REPLICAS=
  19. #SWIFT_HASH=011688b44136573e209e 
  20.   
  21. # Enable Logging
  22. DEST=/home/stack 
  23. LOGFILE=$DEST/logs/stack.sh.log 
  24. VERBOSE=True 
  25. LOG_COLOR=True 
  26. SCREEN_LOGDIR=$DEST/logs 
  27.   
  28. # Pre-requisite 
  29. ENABLED_SERVICES=rabbit,mysql,key 
  30.   
  31. ## If you want ZeroMQ instead of RabbitMQ (don't forget to un-declare 'rabbit' from the pre-requesite) 
  32. #ENABLED_SERVICES+=,-rabbit,-qpid,zeromq 
  33.   
  34. ## If you want Qpid instead of RabbitMQ (don't forget to un-declare 'rabbit' from the pre-requesite) 
  35. #ENABLED_SERVICES+=,-rabbit,-zeromq,qpid 
  36.   
  37. # Horizon (Dashboard UI) - (always use the trunk) 
  38. ENABLED_SERVICES+=,horizon 
  39. #HORIZON_REPO=https://github.com/openstack/horizon 
  40. #HORIZON_BRANCH=master 
  41.   
  42. # Nova - Compute Service 
  43. ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-cauth
  44. IMAGE_URLS+=",https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img" 
  45.   
  46. ## Nova Cells 
  47. ENABLED_SERVICES+=,n-cell 
  48.   
  49. # Glance - Image Service 
  50. ENABLED_SERVICES+=,g-api,g-reg 
  51.   
  52. # Swift - Object Storage 
  53. #ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account 
  54.   
  55. # Neutron - Networking Service 
  56. If Neutron is not declared the old good nova-network will be used 
  57. ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron 
  58.   
  59. ## Neutron - Load Balancing 
  60. ENABLED_SERVICES+=,q-lbaas 
  61.   
  62. ## Neutron - VPN as a Service 
  63. ENABLED_SERVICES+=,q-vpn 
  64.   
  65. ## Neutron - Firewall as a Service 
  66. ENABLED_SERVICES+=,q-fwaas 
  67.   
  68. # VLAN configuration - LinuxBridge + VLAN模式
  69. Q_PLUGIN=linuxbridge 
  70. ENABLE_TENANT_VLANS=True
  71. TENANT_VLAN_RANGE=1920:1930
  72. PHYSICAL_NETWORK=default
  73. LB_PHYSICAL_INTERFACE=eth0

  # VLAN configuration - Open VSwitch + VLAN模式   
  #ENABLE_TENANT_VLANS=True
  #TENANT_VLAN_RANGE=1920:1930
  #PHYSICAL_NETWORK=default
  #OVS_PHYSICAL_INTERFACE=eth0

  1. # GRE tunnel configuration 
  2. #Q_PLUGIN=ml2 
  3. #ENABLE_TENANT_TUNNELS=True 
  4.   
  5. # VXLAN tunnel configuration 
  6. #Q_PLUGIN=ml2 
  7. #Q_ML2_TENANT_NETWORK_TYPE=vxlan 
  8.   
  9. # Cinder - Block Device Service 
  10. ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch 
  11.   
  12. # Heat - Orchestration Service 
  13. ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng 
  14. #IMAGE_URLS+=",http://fedorapeople.org/groups/heat/prebuilt-jeos-images/F17-x86_64-cfntools.qcow2" 
  15.   
  16. # Ceilometer - Metering Service (metering + alarming) 
  17. CEILOMETER_BACKEND=mysql 
  18. ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api 
  19. ENABLED_SERVICES+=,ceilometer-alarm-notify,ceilometer-alarm-eval 
  20.   
  21. # Apache fronted for WSGI 
  22. APACHE_ENABLED_SERVICES+=keystone,swift
09-04 15:05