只能瞄准Bosh Lite导演。请使用' bosh target'在运行此脚本之前

时间:2016-01-08 14:20:09

标签: cloudfoundry cf-bosh

我使用bosh / microbosh安装了Cloud Foundry。现在,我尝试使用Cloud Foundry Admin UI

安装admin-ui-boshrelease

在运行./make_manifest warden时,我收到错误:

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导演"。在我的情况下,波什导演的名字是" vms-dev2"。

我使用BOSH而不是BOSH-Lite安装了Cloud Foundry。这个Cloud Foundry Admin UI版本仅支持BOSH-Lite,而不支持BOSH吗?请帮帮我。

1 个答案:

答案 0 :(得分: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