Advertisement
Guest User

localrc or local.conf

a guest
Apr 27th, 2014
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. # Sample ``localrc`` 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. # ``localrc`` 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 ``localrc`` 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/localrc.html
  15. # These should be considered as samples and are unsupported DevStack code.
  16.  
  17. # Minimal Contents
  18. # ----------------
  19.  
  20. # While ``stack.sh`` is happy to run without ``localrc``, devlife is better when
  21. # there are a few minimal variables set:
  22.  
  23. # If the ``*_PASSWORD`` variables are not set here you will be prompted to enter
  24. # values for them by ``stack.sh`` and they will be added to ``localrc``.
  25. ADMIN_PASSWORD=secret
  26. MYSQL_PASSWORD=secret
  27. RABBIT_PASSWORD=secret
  28. SERVICE_PASSWORD=$ADMIN_PASSWORD
  29.  
  30. FLOATING_RANGE=192.168.0.136/29
  31. FIXED_RANGE=10.11.12.0/24
  32. FIXED_NETWORK_SIZE=256
  33. FLAT_INTERFACE=eth0
  34.  
  35. disable_service n-net
  36. enable_service q-svc
  37. enable_service q-agt
  38. enable_service q-dhcp
  39. enable_service q-l3
  40. enable_service q-meta
  41. enable_service neutron
  42. # Optional, to enable tempest configuration as part of devstack
  43. enable_service tempest
  44. enable_service q-lbaas
  45. enable_service q-vpn
  46. enable_service q-fwaas
  47.  
  48. # ``HOST_IP`` should be set manually for best results if the NIC configuration
  49. # of the host is unusual, i.e. ``eth1`` has the default route but ``eth0`` is the
  50. # public interface. It is auto-detected in ``stack.sh`` but often is indeterminate
  51. # on later runs due to the IP moving from an Ethernet interface to a bridge on
  52. # the host. Setting it here also makes it available for ``openrc`` to include
  53. # when setting ``OS_AUTH_URL``.
  54. # ``HOST_IP`` is not set by default.
  55. #HOST_IP=w.x.y.z
  56.  
  57.  
  58. # Logging
  59. # -------
  60.  
  61. # By default ``stack.sh`` output only goes to the terminal where it runs. It can
  62. # be configured to additionally log to a file by setting ``LOGFILE`` to the full
  63. # path of the destination log file. A timestamp will be appended to the given name.
  64. LOGFILE=$DEST/logs/stack.sh.log
  65.  
  66. # Old log files are automatically removed after 7 days to keep things neat. Change
  67. # the number of days by setting ``LOGDAYS``.
  68. LOGDAYS=2
  69.  
  70. # Nova logs will be colorized if ``SYSLOG`` is not set; turn this off by setting
  71. # ``LOG_COLOR`` false.
  72. #LOG_COLOR=False
  73. SCREEN_LOGDIR=$DEST/logs/screen
  74.  
  75. # Using milestone-proposed branches
  76. # ---------------------------------
  77.  
  78. # Uncomment these to grab the milestone-proposed branches from the repos:
  79. #CINDER_BRANCH=milestone-proposed
  80. #GLANCE_BRANCH=milestone-proposed
  81. #HORIZON_BRANCH=milestone-proposed
  82. #KEYSTONE_BRANCH=milestone-proposed
  83. #KEYSTONECLIENT_BRANCH=milestone-proposed
  84. #NOVA_BRANCH=milestone-proposed
  85. #NOVACLIENT_BRANCH=milestone-proposed
  86. #NEUTRON_BRANCH=milestone-proposed
  87. #SWIFT_BRANCH=milestone-proposed
  88.  
  89.  
  90. # Swift
  91. # -----
  92.  
  93. # Swift is now used as the back-end for the S3-like object store. If Nova's
  94. # objectstore (``n-obj`` in ``ENABLED_SERVICES``) is enabled, it will NOT
  95. # run if Swift is enabled. Setting the hash value is required and you will
  96. # be prompted for it if Swift is enabled so just set it to something already:
  97. SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
  98.  
  99. # For development purposes the default of 3 replicas is usually not required.
  100. # Set this to 1 to save some resources:
  101. SWIFT_REPLICAS=1
  102.  
  103. # The data for Swift is stored by default in (``$DEST/data/swift``),
  104. # or (``$DATA_DIR/swift``) if ``DATA_DIR`` has been set, and can be
  105. # moved by setting ``SWIFT_DATA_DIR``. The directory will be created
  106. # if it does not exist.
  107. SWIFT_DATA_DIR=$DEST/data
  108. SERVICE_TOKEN=7a4a023298d2ed4aee97
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement