I can set swift_dir in the config. And this mostly works except swift_hash_path_suffix, which location is hard coded to /etc/swift/swift.conf
I am running a test script (as non-root), which deploys mini-swift in a user local directory, but for this to work I still need to create /etc/swift/swift.conf as a root and set swift_hash_path_suffix, which is globally used by all test environments on this host.
My (simplified) approach to fix this was to allow to set the location of swift.conf with swift_hash_path_suffix via SWIFT_DIR environment variable. Flavio provided much more general solution. I hope it will be committed eventually.
I can start servers (proxy, account, etc...) specifying their config file in command line, like:
/usr/ local/bin/ swift-proxy- server /path/to/ proxy-server. conf
I can set swift_dir in the config. And this mostly works except swift_hash_ path_suffix, which location is hard coded to /etc/swift/ swift.conf
I am running a test script (as non-root), which deploys mini-swift in a user local directory, but for this to work I still need to create /etc/swift/ swift.conf as a root and set swift_hash_ path_suffix, which is globally used by all test environments on this host.
My (simplified) approach to fix this was to allow to set the location of swift.conf with swift_hash_ path_suffix via SWIFT_DIR environment variable. Flavio provided much more general solution. I hope it will be committed eventually.