Skip to content

Commit

Permalink
Adjust region in instructions to east1 which has three AZs
Browse files Browse the repository at this point in the history
  • Loading branch information
evanfarrar committed Jan 10, 2017
1 parent d1b9602 commit ef2bf42
Showing 1 changed file with 3 additions and 42 deletions.
45 changes: 3 additions & 42 deletions cloudfoundry.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This document will walk through deploying a cf-deployment based Cloud Foundry.

* bbl
* A GCP Service Account key as described in README.md
* BBL up. e.g. ```bbl up --gcp-zone us-west1-a --gcp-region us-west1 --gcp-service-account-key service-account.key.json --gcp-project-id my-gcp-project-id --iaas gcp```
* BBL up. e.g. ```bbl up --gcp-zone us-east1-b --gcp-region us-east1 --gcp-service-account-key service-account.key.json --gcp-project-id my-gcp-project-id --iaas gcp```
* This guide will assume the [Bosh v2 CLI](https://bosh.io/docs/cli-v2.html) is installed, but bosh v1 CLI could work, with some minor changes.

## Set the bosh environment
Expand All @@ -31,50 +31,11 @@ bbl create-lbs --type cf --key path/to/cf.example.com.key --cert path/to/cf.exam
Scale instance types, disks and instance count based on your needs. Other sizes are available, see ```bosh cloud-config```.

1. Start with a clone of the [CF Deployment](https://github.com/cloudfoundry/cf-deployment) repo.
2. Replace static IP addresses defined in ```cf-deployment.yml``` and ```opsfiles/gcp.yml``` with ip addresses from the cloud-config for bbl:
```
- type: replace
path: /instance_groups/name=mysql/networks/name=private/static_ips
value:
- - &mysql_ip 10.0.1.193
+ - &mysql_ip 10.0.31.190
- type: replace
path: /instance_groups/name=consul/networks/name=private/static_ips
value: &consul_ips
- - 10.0.1.194
- - 10.0.1.195
- - 10.0.1.196
+ - 10.0.31.194
+ - 10.0.47.190
+ - 10.0.47.194
- type: replace
path: /instance_groups/name=nats/networks/name=private/static_ips
value: &nats_ips
- - 10.0.1.197
- - 10.0.1.198
+ - 10.0.31.195
+ - 10.0.31.196
```

3. Replace the ```vm_extensions:``` property of ```diego-brain``` with an empty array in cf-deployment.yml:
```
- vm_extensions:
- - ssh-proxy-lb
+ vm_extensions: []
```
4. Remove zone names that do not exist in your region. For example, ```us-west1``` used above contains only two zones, so z3 must be removed from the manifest in two places:
```
instance_groups:
azs:
- z1
- z2
- - z3
```
6. Create a vars file, cf-deployment-vars.yml:
2. Create a vars file, cf-deployment-vars.yml:
```
system_domain: cf.example.com
```
7. Check that the rest of the required credentials can autogenerate:
3. Check that the rest of the required credentials can autogenerate:
```
bosh -n interpolate --vars-store cf-deployment-vars.yml -o opsfiles/gcp.yml -o opsfiles/disable-router-tls-termination.yml --var-errs cf-deployment.yml
```
Expand Down

0 comments on commit ef2bf42

Please sign in to comment.