Skip to content
Snippets Groups Projects
Commit 0fe0f4bf authored by Tom Viehman's avatar Tom Viehman Committed by Will Murphy
Browse files

Create a service broker after deploying CF


[#162996970]

Signed-off-by: default avatarWill Murphy <wmurphy@pivotal.io>
parent 0cba1216
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,11 @@ resources: ...@@ -40,6 +40,11 @@ resources:
private_key: ((cli-pools-github-private-key)) private_key: ((cli-pools-github-private-key))
branch: master branch: master
pool: ((pool-name)) pool: ((pool-name))
- name: overview-broker
type: git
source:
uri: https://github.com/mattmcneeney/overview-broker
branch: master
jobs: jobs:
- name: deploy - name: deploy
...@@ -51,6 +56,7 @@ jobs: ...@@ -51,6 +56,7 @@ jobs:
trigger: true trigger: true
- get: cf-deployment-concourse-tasks - get: cf-deployment-concourse-tasks
- get: state - get: state
- get: overview-broker
- put: gcp-bosh-pool - put: gcp-bosh-pool
params: params:
claim: ((stack-name)).cli.fun claim: ((stack-name)).cli.fun
...@@ -108,6 +114,8 @@ jobs: ...@@ -108,6 +114,8 @@ jobs:
params: params:
BBL_STATE_DIR: ci/infrastructure/((stack-name)) BBL_STATE_DIR: ci/infrastructure/((stack-name))
CLEAN_ALL: true CLEAN_ALL: true
- task: add-example-service-broker
file: cli-ci/ci/infrastructure/tasks/add-example-service-broker.yml
ensure: ensure:
aggregate: aggregate:
- put: state - put: state
......
---
platform: linux
image_resource:
type: docker-image
source:
repository: cfcli/cli-base
params:
FOUNDATION_NAME:
inputs:
- name: overview-broker
- name: state
run:
path: bash
args:
- -c
- |
set -eux
pushd state
eval "$(bbl print-env)"
popd
credhub login
export CF_PASSWORD=$(credhub get -n /bosh-${FOUNDATION_NAME}/cf/cf_admin_password | bosh interpolate --path /value -)
export CF_API=https://api.${FOUNDATION_NAME}.cli.fun
wget https://s3-us-west-1.amazonaws.com/cf-cli-releases/releases/v6.41.0/cf-cli_6.41.0_linux_x86-64.tgz
tar zxf cf-cli_6.41.0_linux_x86-64.tgz -C /usr/local/bin
chmod 755 /usr/local/bin/cf
cf api $CF_API --skip-ssl-validation
cf auth admin $CF_PASSWORD
cf create-org broker
cf create-space broker -o broker
cf target -o broker -s broker
pushd overview-broker
wget https://raw.githubusercontent.com/mattmcneeney/overview-broker/master/examples/cloudfoundry/manifest.yaml
sed -i '/random-route/d' manifest.yaml
cf push
popd
cf create-service-broker overview-broker admin password https://overview-broker.${FOUNDATION_NAME}.cli.fun
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment