github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/examples/keystone/README.md (about) 1 Gohan & Keystone integraion example 2 ------------------------------------ 3 4 We show how to integrate Gohan & Keystone in this example 5 6 7 Install Keystone 8 ----------------- 9 10 1. Install python & pip 11 2. Setup keystone with CORS support 12 13 This is sample shell code for dev setup 14 15 ``` shell 16 GOHAN_APP_DIR=`pwd` 17 18 git clone https://github.com/openstack/keystone.git 19 cd keystone/ 20 pip install wsgicors 21 pip install tox 22 tox -epy 23 24 cp $GOHAN_APP_DIR/keystone-paste.ini etc 25 cp etc/keystone.conf{.sample,} 26 27 .tox/py/bin/keystone-manage db_sync 28 .tox/py/bin/keystone-all 29 30 pip install python-opensatckclient 31 export OS_TOKEN=ADMIN 32 tools/sample_data.sh 33 34 openstack user create gohan --project service\ 35 --password "gohan" 36 37 openstack role add --user gohan \ 38 --project service \ 39 admin 40 ``` 41 42 Test keystone 43 44 ``` shell 45 export OS_AUTH_URL=http://localhost:5000/v2.0 46 export OS_PROJECT_NAME=demo 47 export OS_USERNAME=admin 48 export OS_PASSWORD=secrete 49 50 openstack project list 51 ``` 52 53 Configure gohan 54 ---------------- 55 56 You need set auth_url and keystone/fake=false 57 58 ``` yaml 59 keystone: 60 use_keystone: true 61 fake: false 62 auth_url: "http://localhost:5000/v2.0" 63 user_name: "gohan" 64 tenant_name: "service" 65 password: "gohan" 66 ``` 67 68 Configure webui config.json 69 ----------------------------- 70 71 You need set auto_url in config.json on webui 72 73 ``` json 74 { 75 "auth_url": "http://localhost:5000/v2.0", 76 "gohan": { 77 "schema": "/gohan/v0.1/schemas", 78 "url": "http://__HOST__" 79 } 80 } 81 ``` 82 83 Note that we can't mix http & https in webui & keystone api endpoint.