In Cloud Foundry (CF), an Account maps to a user account on a CF foundation (a BOSH Director and all the VMs it deploys). You can add multiple accounts for one or more CF foundations.
Your CF foundations’ API endpoints must be reachable from your installation of Spinnaker.
Add an account
First, make sure that the provider is enabled:
hal config provider cloudfoundry enable
Next, run the following
hal command (replacing placeholders with actual values) to add an account named
my-cf-account to your list of Cloud Foundry accounts:
hal config provider cloudfoundry account add my-cf-account \ --api=[api.sys.endpoint.for.foundation] \ --user=[user-account] \ --password=[user-password] \ --environment=[dev,prod,...] \ --appsManagerUri=[http://apps.sys.endpoint.for.foundation] \ --metricsUri=[http://metrics.sys.endpoint.for.foundation]
As part of the command execution, Halyard will attempt to connect to the Cloud Foundry instance. Halyard will return an error if this attempt fails.
To see the current accounts configured for the provider, you can run:
hal config provider cloudfoundry account list
To see details about any account for the provider, you can run:
hal config provider cloudfoundry account get [account-name]
Finally, apply your changes:
$ hal deploy apply
Within a few minutes after applying your changes, you should be able to view the CF instance’s existing applications from your installation of Spinnaker.