2016-01-08 41 views
0

我使用bosh/microbosh安裝Cloud Foundry。現在我想用admin-ui-boshrelease只能針對波什精簡版主任。請在運行此腳本之前使用'bosh target'

在運行./make_manifest warden,我得到錯誤安裝Cloud Foundry Admin UI

Can only target Bosh Lite Director. Please use 'bosh target' before running this script. 

我把目標定到192.168.0.5:

$ bosh target 
Current target is https://192.168.0.5:25555 (vms-dev2) 

我打開make_manifest文件,並發現它支持aws,vsphere和warden。在監製人的情況下,它的導演名字是「Bosh Lite Director」。在我的情況下,波什導演的名字是「vms-dev2」。

我使用BOSH不是波什精簡版安裝的Cloud Foundry。僅在BOSH-Lite中支持此Cloud Foundry Admin UI版本,而不支持BOSH?請幫助我。

+1

如果您沒有使用BOSH-Lite,請不要使用'./make_manifest warden'。如果您使用BOSH部署到AWS,則使用'./make_manifest aws'。如果您使用BOSH部署到vSphere,則使用'./make_manifest vsphere'。如果您部署到不同的IaaS,如OpenStack,則可能需要手動構建清單。你可以在GitHub倉庫上打開一個問題,維護者應該能夠引導你創建一個清單。 –

+0

謝謝@AmitKumarGupta。是的,我需要爲管理員用戶界面創建清單(.yml)。 –

回答

0

我創建部署文件,它爲我工作得很好。

<% 
load '/opt/installer/tenant-devtest1/cf-deploy/cf-settings.rb' 
%> 
name: <%= $deployment_name %> 

director_uuid: 0de3e7b2-4e02-4149-bb79-980c1fe19f74 

releases: 
- {name: admin-ui, version: 6} 

networks: 
- name: ccc-bosh-net1 
    type: dynamic 
    cloud_properties: 
    net_id: <%= $bosh_net_id %> 
    security_groups: 
     - cfoundry 
     - bosh 
     - default 

resource_pools: 
    - name: small 
    network: ccc-bosh-net1 
    stemcell: 
     name: bosh-openstack-kvm-ubuntu-trusty-go_agent-raw 
     version: <%= $stemcell_version %> 
    cloud_properties: 
     instance_type: Micro-Small 

compilation: 
    workers: 2 
    network: ccc-bosh-net1 
    cloud_properties: 
    instance_type: Micro-Small 

update: 
    canaries: 0 
    canary_watch_time: 30000-600000 
    update_watch_time: 30000-600000 
    max_in_flight: 4 
    serial: true 

jobs: 
- name: admin_ui 
    template: admin_ui 
    instances: 1 
    resource_pool: small 
    persistent_disk: 5120 
    networks: 
    - name: ccc-bosh-net1 

- name: register_admin_ui 
    template: register_admin_ui 
    instances: 1 
    resource_pool: small 
    lifecycle: errand 
    networks: 
    - name: ccc-bosh-net1 

- name: deregister_admin_ui 
    template: deregister_admin_ui 
    instances: 1 
    resource_pool: small 
    lifecycle: errand 
    networks: 
    - name: ccc-bosh-net1 

properties: 
    cc: 
    srv_api_uri: <%= $protocol %>://api.<%= $root_domain %> 
    system_domain: <%= $root_domain %> 
    uaa: 
    url: <%= $protocol %>://uaa.<%= $root_domain %> 
    admin: 
     client_secret: <%= $common_password %> 
    admin_ui: 
    cloud_controller_uri: <%= $protocol %>://api.<%= $root_domain %> 
    cloud_controller_ssl_verify_none: true 
    uri: <%= $protocol %>://admin.<%= $root_domain %> 
    users: ~ 
    uaa: 
     url: <%= $protocol %>://uaa.<%= $root_domain %> 
     admin_client_secret: <%= $common_password %> 
     client: 
     id: admin_ui_client 
     secret: <%= $common_password %> 
     scopes: 
     admin: ~ 
     user: ~ 

    ccdb: 
     scheme: postgres 
     address: 0.cloud-controller.ccc-bosh-net.<%= $deployment_name %>.microbosh 
     port: 5524 
     username: ccadmin 
     password: <%= $common_password %> 
     database: ccdb 
    uaadb: 
     scheme: postgresql 
     address: 0.cloud-controller.ccc-bosh-net.<%= $deployment_name %>.microbosh 
     port: 5524 
     username: uaaadmin 
     password: <%= $common_password %> 
     database: uaadb 

    ssl: 
    skip_cert_verify: true 
    networks: 
    apps: ccc-bosh-net1 

    nats: 
    user: nats 
    password: <%= $common_password %> 
    address: 0.cloud-controller.ccc-bosh-net.<%= $deployment_name %>.microbosh 
    port: 4222 
相關問題