This repository has been archived by the owner on Nov 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
bosh.yml
134 lines (112 loc) · 3.76 KB
/
bosh.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
name: bosh
releases:
- name: bosh
url: https://bosh.io/d/github.com/cloudfoundry/bosh?v=256.2
sha1: ff2f4e16e02f66b31c595196052a809100cfd5a8
- name: bosh-aws-cpi
url: https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-aws-cpi-release?v=53
sha1: 3a5988bd2b6e951995fe030c75b07c5b922e2d59
resource_pools:
- name: vms
network: private
stemcell:
url: https://bosh.io/d/stemcells/bosh-aws-xen-hvm-ubuntu-trusty-go_agent?v=3232.4
sha1: ac920cae17c7159dee3bf1ebac727ce2d01564e9
cloud_properties:
instance_type: m3.xlarge
ephemeral_disk: {size: 25_000, type: gp2}
availability_zone: us-east-1e # <--- Replace with Availability Zone
disk_pools:
- name: disks
disk_size: 20_000
cloud_properties: {type: gp2}
networks:
- name: private
type: manual
subnets:
- range: 192.168.1.0/24
gateway: 192.168.1.1
dns: [8.8.8.8]
cloud_properties: {subnet: subnet-05b19838 } # <--- Replace with example Subnet ID
- name: public
type: vip
jobs:
- name: bosh
instances: 1
templates:
- {name: nats, release: bosh}
- {name: postgres, release: bosh}
- {name: blobstore, release: bosh}
- {name: director, release: bosh}
- {name: health_monitor, release: bosh}
- {name: registry, release: bosh}
- {name: aws_cpi, release: bosh-aws-cpi}
- {name: powerdns, release: bosh} # This adds Power DNS to your bosh director
resource_pool: vms
persistent_disk_pool: disks
networks:
- name: private
static_ips: [192.168.1.6]
default: [dns, gateway]
- name: public
static_ips: [52.0.195.60] # <--- Replace with public Elastic IP address, from "aws ec2 allocate-address"
properties:
nats:
address: 127.0.0.1
user: nats
password: nats-password
dns:
address: 192.168.1.6 # <--- Replace: DNS server address, which by convention is the ".6" host on your subnet
db: {host: 127.0.0.1, user: postgres, password: postgres-password}
postgres: &db
host: 127.0.0.1
user: postgres
password: postgres-password
database: bosh
adapter: postgres
registry:
address: 192.168.1.6
host: 192.168.1.6
db: *db
http: {user: admin, password: admin, port: 25777}
username: admin
password: admin
port: 25777
blobstore:
address: 192.168.1.6
port: 25250
provider: dav
director: {user: director, password: director-password}
agent: {user: agent, password: agent-password}
director:
address: 127.0.0.1
name: my-bosh
db: *db
cpi_job: aws_cpi
max_threads: 10
enable_post_deploy: true
hm:
director_account: {user: admin, password: admin}
resurrector_enabled: true
aws: &aws
access_key_id: E1QM65U3UL6Z62Q8LBT # <--- Replace with AWS Access Key ID
secret_access_key: Uh5LbVjvZnjkRnN3syz8fFSs6VuLXlheYsG4Kwg # <--- Replace with AWS Secret Key
default_key_name: bosh # <--- Must correlate with the private_key value, below
default_security_groups: [sg-00cb477b] # <--- Replace with security group ID
region: us-east-1 # <--- Replace with your region
agent: {mbus: "nats://nats:[email protected]:4222"} # Embed this IP:PORT below
ntp: &ntp [0.pool.ntp.org, 1.pool.ntp.org]
cloud_provider:
template: {name: aws_cpi, release: bosh-aws-cpi}
ssh_tunnel:
host: 52.0.195.60 # <--- Replace with Elastic IP address, same as above
port: 22
user: vcap
private_key: ./bosh.pem # <--- Path to key must be relative to this manifest file
mbus: "https://mbus:[email protected]:6868" # Just using IP:PORT from above ("Embed this IP:PORT below")
properties:
aws: *aws
agent: {mbus: "https://mbus:[email protected]:6868"}
blobstore: {provider: local, path: /var/vcap/micro_bosh/data/cache}
ntp: *ntp