This repository contains a BOSH release for a Cloud Foundry Redis service broker.
git clone https://github.com/pivotal-cf/cf-redis-release ~/workspace/cf-redis-release
cd ~/workspace/cf-redis-release
git submodule update --init --recursive
- bosh2 CLI (you may use the old CLI but instructions will use the new one)
direnv
(or set envs yourself)- a bosh director
- a cloud foundry deployment
- fill out the following envs of the
.envrc.template
file and save as .envrc:- BOSH_ENVIRONMENT
- BOSH_CA_CERT
- BOSH_CLIENT
- BOSH_CLIENT_SECRET
- BOSH_DEPLOYMENT
direnv allow
- routing release
0.157.0
(bosh upload-release http://bosh.io/d/github.com/cloudfoundry-incubator/cf-routing-release?v=0.157.0
) - syslog-migration release
8
(bosh upload-release https://github.com/pivotal-cf/syslog-migration-release/releases/download/v8/syslog-migration-8.tgz
)
Populate a vars file (using manifest/vars-lite.yml
as a template), save it to
secrets/vars.yml
. You will need values from both your cloud-config and secrets
from your cf-deployment.
To deploy:
bosh upload-stemcell https://s3.amazonaws.com/bosh-core-stemcells/warden/bosh-stemcell-3363.27-warden-boshlite-ubuntu-trusty-go_agent.tgz
bosh create-release
bosh upload-release
bosh deploy --vars-file secrets/vars.yml manifest/deployment.yml
# or if you are deploying on GCP:
#bosh deploy --vars-file secrets/vars.yml manifest/deployment.yml --ops-file manifest/ops-public-ip-gcp.yml
# this ops-file adds a GCP specific vm_extension: `public_ip`, which is required to allow
# instances to send outgoing public traffic. e.g. for the broker_registrar to register with the CF.
The following ports and ranges are used in this service:
- broker vm, port 12350: access to the broker from the cloud controllers
- broker vm, ports 32768-61000: on the service broker from the Diego Cell and Diego Brain network(s). This is only required for the shared service plan
- dedicated node, port 6379: access to all dedicated nodes from the Diego Cell and Diego Brain network(s)
bundle install
bundle exec rspec spec