Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1. # Sample ``local.conf`` for user-configurable variables in ``stack.sh``
  2.  
  3. # NOTE: Copy this file to the root ``devstack`` directory for it to
  4. # work properly.
  5.  
  6. # ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
  7. # This gives it the ability to override any variables set in ``stackrc``.
  8. # Also, most of the settings in ``stack.sh`` are written to only be set if no
  9. # value has already been set; this lets ``local.conf`` effectively override the
  10. # default values.
  11.  
  12. # This is a collection of some of the settings we have found to be useful
  13. # in our DevStack development environments. Additional settings are described
  14. # in http://devstack.org/local.conf.html
  15. # These should be considered as samples and are unsupported DevStack code.
  16.  
  17. # The ``localrc`` section replaces the old ``localrc`` configuration file.
  18. # Note that if ``localrc`` is present it will be used in favor of this section.
  19. [[local|localrc]]
  20.  
  21. # Minimal Contents
  22. # ----------------
  23.  
  24. # While ``stack.sh`` is happy to run without ``localrc``, devlife is better when
  25. # there are a few minimal variables set:
  26.  
  27. # If the ``*_PASSWORD`` variables are not set here you will be prompted to enter
  28. # values for them by ``stack.sh`` and they will be added to ``local.conf``.
  29. DATABASE_PASSWORD=stack
  30. ADMIN_PASSWORD=stack
  31. MYSQL_PASSWORD=stack
  32. RABBIT_PASSWORD=stack
  33. SERVICE_PASSWORD=$ADMIN_PASSWORD
  34.  
  35. # ``HOST_IP`` should be set manually for best results if the NIC configuration
  36. # of the host is unusual, i.e. ``eth1`` has the default route but ``eth0`` is the
  37. # public interface. It is auto-detected in ``stack.sh`` but often is indeterminate
  38. # on later runs due to the IP moving from an Ethernet interface to a bridge on
  39. # the host. Setting it here also makes it available for ``openrc`` to include
  40. # when setting ``OS_AUTH_URL``.
  41. # ``HOST_IP`` is not set by default.
  42. #HOST_IP=w.x.y.z
  43.  
  44.  
  45. # Logging
  46. # -------
  47.  
  48. # By default ``stack.sh`` output only goes to the terminal where it runs. It can
  49. # be configured to additionally log to a file by setting ``LOGFILE`` to the full
  50. # path of the destination log file. A timestamp will be appended to the given name.
  51. LOGFILE=$DEST/logs/stack.sh.log
  52.  
  53. # Old log files are automatically removed after 7 days to keep things neat. Change
  54. # the number of days by setting ``LOGDAYS``.
  55. LOGDAYS=2
  56.  
  57. # Nova logs will be colorized if ``SYSLOG`` is not set; turn this off by setting
  58. # ``LOG_COLOR`` false.
  59. #LOG_COLOR=False
  60.  
  61.  
  62. # Using milestone-proposed branches
  63. # ---------------------------------
  64.  
  65. # Uncomment these to grab the milestone-proposed branches from the repos:
  66. #CINDER_BRANCH=milestone-proposed
  67. #GLANCE_BRANCH=milestone-proposed
  68. #HORIZON_BRANCH=milestone-proposed
  69. #KEYSTONE_BRANCH=milestone-proposed
  70. #KEYSTONECLIENT_BRANCH=milestone-proposed
  71. #NOVA_BRANCH=milestone-proposed
  72. #NOVACLIENT_BRANCH=milestone-proposed
  73. #NEUTRON_BRANCH=milestone-proposed
  74. #SWIFT_BRANCH=milestone-proposed
  75.  
  76.  
  77. # Swift
  78. # -----
  79.  
  80. # Swift is now used as the back-end for the S3-like object store. If Nova's
  81. # objectstore (``n-obj`` in ``ENABLED_SERVICES``) is enabled, it will NOT
  82. # run if Swift is enabled. Setting the hash value is required and you will
  83. # be prompted for it if Swift is enabled so just set it to something already:
  84. SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
  85.  
  86. # For development purposes the default of 3 replicas is usually not required.
  87. # Set this to 1 to save some resources:
  88. SWIFT_REPLICAS=1
  89.  
  90. # The data for Swift is stored by default in (``$DEST/data/swift``),
  91. # or (``$DATA_DIR/swift``) if ``DATA_DIR`` has been set, and can be
  92. # moved by setting ``SWIFT_DATA_DIR``. The directory will be created
  93. # if it does not exist.
  94. SWIFT_DATA_DIR=$DEST/data
  95.  
  96. #--------------------------------------------------------------------------------------------
  97.  
  98. # Configs novas
  99. # Enable Logging
  100.  
  101. ENABLE_TENANT_VLANS=True
  102. PHYSICAL_NETWORK=physnet1
  103. TENANT_VLAN_RANGE=100:200
  104. OVS_PHYSICAL_BRIDGE=veth0
  105.  
  106.  
  107. #Q_ML2_PLUGIN_MECHANISM_DRIVERS=datacom
  108. #Q_ML2_TENANT_NETWORK_TYPE=vlan
  109. #Q_ML2_PLUGIN_MECHANISM_DRIVERS=datacom,openvswitch,linuxbridge
  110. #Q_ML2_TENANT_NETWORK_TYPE=local,vlan
  111. Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge
  112. Q_ML2_TENANT_NETWORK_TYPE=local,vlan
  113.  
  114. Q_PLUGIN_EXTRA_CONF_PATH=(/etc/neutron/plugins/ml2)
  115. Q_PLUGIN_EXTRA_CONF_FILES=(ml2_conf_datacom.ini)
  116.  
  117. LOGFILE=/opt/stack/logs/stack.sh.log
  118. VERBOSE=True
  119. LOG_COLOR=True
  120. SCREEN_LOGDIR=/opt/stack/logs
  121.  
  122. # Pre-requisite
  123. ENABLED_SERVICES=rabbit,mysql,key
  124.  
  125. # Horizon (always use the trunk)
  126. ENABLED_SERVICES+=,horizon
  127. HORIZON_REPO=https://github.com/openstack/horizon
  128. HORIZON_BRANCH=master
  129.  
  130. # Nova
  131. ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch
  132. IMAGE_URLS+=",https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img"
  133.  
  134. # Glance
  135. ENABLED_SERVICES+=,g-api,g-reg
  136.  
  137. # Neutron
  138. ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron
  139.  
  140. # Cinder
  141. ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement