Configure Swift Components

General server configuration options can be found in http://swift.openstack.org/deployment_guide.html. If the swift-doc package is installed it can also be viewed in the /usr/share/doc/swift-doc/html directory. Python uses paste.deploy to manage configuration. Default configuration options are set in the [DEFAULT] section, and any options specified there can be overridden in any of the other sections BUT ONLY BY USING THE SYNTAX set option_name = value.

Here is a sample paste.deploy configuration for reference:

[DEFAULT]
name1 = globalvalue
name2 = globalvalue
name3 = globalvalue
set name4 = globalvalue

[pipeline:main]
pipeline = myapp

[app:myapp]
use = egg:mypkg#myapp
name2 = localvalue
set name3 = localvalue
set name5 = localvalue
name6 = localvalue

Create and edit /etc/swift/swift.conf and add the following lines to it:

[swift-hash]
# random unique string that can never change (DO NOT LOSE). I'm using 03c9f48da2229770. 
# od -t x8 -N 8 -A n < /dev/random
# The above command can be used to generate random a string.
swift_hash_path_suffix = 03c9f48da2229770

You will need the random string when you add more nodes to the setup. So never lose the string.

You can generate a random string by running the following command:

od -t x8 -N 8 -A n < /dev/random


loading table of contents...