forked from concourse/concourse-bosh-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcp.yml
74 lines (63 loc) · 1.71 KB
/
gcp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
- type: replace
path: /releases/-
value:
name: bosh-google-cpi
version: 25.9.0
url: https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-google-cpi-release?v=25.9.0
sha1: 3fbda22fde33878b54dec77f4182f8044be72687
- type: replace
path: /resource_pools/name=vms/stemcell?
value:
url: https://bosh.io/d/stemcells/bosh-google-kvm-ubuntu-trusty-go_agent?v=3363.20
sha1: e785b42faffc5b546ed13fc28e523a4e0c622f0a
# Configure sizes
- type: replace
path: /resource_pools/name=vms/cloud_properties?
value:
zone: ((zone))
machine_type: n1-standard-1
root_disk_size_gb: 40
root_disk_type: pd-standard
- type: replace
path: /disk_pools/name=disks/cloud_properties?
value: {type: pd-standard}
- type: replace
path: /networks/name=default/subnets/0/cloud_properties?
value:
network_name: ((network))
subnetwork_name: ((subnetwork))
ephemeral_external_ip: true
tags: ((tags))
# Add VIP network
- type: replace
path: /networks/-
value:
name: vip
type: vip
- type: replace
path: /instance_groups/name=concourse/networks/name=default/default?
value: [dns, gateway]
- type: replace
path: /instance_groups/name=concourse/networks/-
value:
name: vip
static_ips: [((public_ip))]
- type: replace
path: /instance_groups/name=concourse/networks/name=default/static_ips?
value: [((internal_ip))]
# Add CPI job
- type: replace
path: /cloud_provider/template?
value:
name: google_cpi
release: bosh-google-cpi
- type: replace
path: /cloud_provider/properties/google?
value:
project: ((project_id))
json_key: ((gcp_credentials_json))
# Use GCP NTP
- type: replace
path: /cloud_provider/properties/ntp
value: &ntp [169.254.169.254]