まずはproxyサーバにswauth入れる。
swiftのversionは1.7.5です。 ubuntuは10.04 LTSです。
# #swauthをaptで持って来れるように設定 # vim /etc/apt/sources.list.d/swauth.list #追記 deb http://gholt.github.com/swauth/lucid lucid main #update apt-get update apt-get install python-swauth swauth-doc
つづいて、proxy-server.confの編集
[pipeline:main] pipeline = catch_errors healthcheck cache staticweb swauth proxy-server [app:proxy-server] allow_account_management = true # #xxx.のIPはLBのインターナルIPにしました。 # [filter:swauth] use = egg:swauth#swauth set log_name = swauth super_admin_key = swauthkey default_swift_cluster = cluster_name#http://xxx.xxx.xxx.xxx:8080/v1#http://127.0.0.1:8080/v1
つづいて、確認作業
# #proxy 設定ファイル読み込み # swift-init all reload # #アカウント追加 # swauth-add-user -A http://xxx.xxx.xxx.xxx:8080/auth/ -K swauthkey -a -a yattarou yattaroud yattaraouing # #確認してみる。下記のようにStorageURLとかがなってればok # swift -A http://xxx.xxx.xxx.xxx:8080/auth/v1.0 -U yattarou:yattaroud -K yattaraouing stat -v StorageURL: http://xxx.xxx.xxx.xxx:8080/v1/AUTH_6f760e8b-1782-4ab9-af70-c80012495824 Auth Token: AUTH_tk47aee4fa24f1411489e28301c954bc4d Account: AUTH_6f760e8b-1782-4ab9-af70-c80012495824 Containers: 0 Objects: 0 Bytes: 0 Accept-Ranges: bytes X-Timestamp: 1359008441.84255 X-Trans-Id: tx12b86fe3b88e4ec689171f74e9e98d44 Content-Type: text/plain; charset=utf-8
0 件のコメント:
コメントを投稿