CloudFoundry admin-ui的运行配置方法

配置步骤: (原机要有ruby1.9.3p448)以上环境)

1.下载admin-ui源码,按要求安装,地址:
https://github.com/cloudfoundry-incubator/admin-ui

2.下载cf-uaac源码,安装地址:
https://github.com/cloudfoundry/cf-uaac

3.安装好uaac后,利用uaac命令添加cloudfoundryclientusers,操作方法:

*_* 先设置uaac target
uaac target uaa.your_domain

1)先获得默认admintoken
uaac token client get admin

2)更新scim
uaac client update admin --authorities "clients.write clients.read uaa.admin scim.read scim.write"

3)删除原有token并且重新获得:
uaac token delete
uaac token client get admin

4)创建俩个用户组admin_ui.adminadmin_ui.user
uaac group add admin_ui.admin
uaac group add admin_ui.user

5)利用uaac命令在系统中加入client
uaac client add admin_ui_client \
    --authorities                                                                                                                                                cloud_controller.admin,cloud_controller.read,cloud_controller.write,openid,scim.read \
    --authorized_grant_types authorization_code,client_credentials,refresh_token \
    --autoapprove true \
    --scope admin_ui.admin,admin_ui.user,openid \
    -s admin_ui_secret

6)利用uaac命令在系统添加user
uaac add user your_name  your_secret --email  your_email


7)将添加的user加入到用户组中:
uaac member add admin_ui.admin your_user_name
uaac member add admin_ui.user your_user_name

至此,运行环境就配好了,接下来修改admin-ui中的配置参数:
1.bind_address修改为配置admin-ui的主机
2.mbus改为所要访问集群的mbus地址
3.uaa_client改为上述配置的用户名密码

这样所有的配置就都好了,只剩运行~运行命令:
cd admin-ui
ruby bin/admin

你可能感兴趣的:(CloudFoundry,云计算)