Skip to content

Commit

Permalink
Update properties to 270ish
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Mitchell committed Feb 12, 2018
1 parent 4a780d0 commit e835302
Show file tree
Hide file tree
Showing 15 changed files with 95 additions and 60 deletions.
2 changes: 1 addition & 1 deletion base/0-deployment-order.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ instance_groups:
migrated_from:
- name: diego-api

- name: diego # consul, metron, auctioneer, stager, nsync, tps, cc_uploader, route_emitter
- name: diego # consul, metron, auctioneer, tps, cc_uploader, route_emitter
instances: (( grab params.diego_instances ))
vm_type: (( grab params.diego_vm_type ))
azs: (( grab params.availability_zones ))
Expand Down
7 changes: 6 additions & 1 deletion base/access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
instance_groups:
- name: access
jobs:
- { name: consul_agent, release: consul, consumes: { consul: { from: consul_server }}}
- name: consul_agent
release: consul
consumes:
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}
- name: ssh_proxy
release: diego
properties:
Expand Down
4 changes: 3 additions & 1 deletion base/bbs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ instance_groups:
- name: consul_agent
release: consul
consumes:
consul: { from: consul_server }
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}

- name: bbs
release: diego
Expand Down
8 changes: 7 additions & 1 deletion base/cell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
instance_groups:
- name: cell
jobs:
- { name: consul_agent, release: consul, consumes: { consul: { from: consul_server }}}
- name: consul_agent
release: consul
consumes:
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}

- { name: cflinuxfs2-rootfs-setup, release: cflinuxfs2-rootfs }

- name: garden
Expand Down
16 changes: 15 additions & 1 deletion base/cloud_controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ instance_groups:
jobs:
- name: consul_agent
release: consul
consumes: { consul: { from: consul_server }}
consumes:
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}
properties:
consul:
agent:
Expand Down Expand Up @@ -115,6 +118,7 @@ meta:
tag: admin

cc:
tls_port: 9023
directory_key: (( vault meta.vault "/cc:directory_key" ))
bulk_api_user: bulk_api_user
bulk_api_password: (( vault meta.vault "/cc:bulk_api" ))
Expand Down Expand Up @@ -144,6 +148,16 @@ meta:
- services
- load_balancer
default_to_diego_backend: true

# This Diego block should go away in a future upgrade
# when these keys just become the defaults
diego:
temporary_local_staging: true
temporary_local_tasks: true
temporary_local_apps: true
temporary_local_tps: true
temporary_local_sync: true

droplets:
.: (( inject meta.blobstore_config ))
droplet_directory_key: (( concat params.env "-cc-droplets-" meta.cc.directory_key ))
Expand Down
8 changes: 6 additions & 2 deletions base/consul_etcd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ instance_groups:
- name: consul_agent
release: consul
consumes:
consul: {from: consul_server}
consul_common: {from: consul_common_link}
consul_server: {from: consul_server_link}
consul_client: {from: consul_client_link}
provides:
consul: {as: consul_server}
consul_common: {as: consul_common_link, shared: true}
consul_server: {as: consul_server_link, shared: true}
consul_client: {as: consul_client_link, shared: true}
properties:
consul:
agent:
Expand Down
35 changes: 8 additions & 27 deletions base/diego.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
instance_groups:
- name: diego
jobs:
- { name: consul_agent, release: consul, consumes: { consul: { from: consul_server }}}
- name: consul_agent
release: consul
consumes:
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}

- name: auctioneer
release: diego
properties:
Expand All @@ -18,37 +24,12 @@ instance_groups:
ca_cert: (( grab meta.certs.diego.ca ))
.: (( inject meta.certs.diego.auctioneer.server ))

- name: stager
release: capi
properties:
capi:
stager:
bbs:
ca_cert: (( grab meta.certs.diego.ca ))
.: (( inject meta.certs.diego.bbs.client ))
cc:
basic_auth_password: (( grab meta.cc.internal_api_password ))
basic_auth_username: (( grab meta.cc.internal_api_user ))

- name: nsync
release: capi
properties:
capi:
nsync:
bbs:
ca_cert: (( grab meta.certs.diego.ca ))
.: (( inject meta.certs.diego.bbs.client ))
cc:
base_url: (( concat "https://api." params.system_domain ))
basic_auth_password: (( grab meta.cc.internal_api_password ))
basic_auth_username: (( grab meta.cc.internal_api_user ))
diego_privileged_containers: true

- name: tps
release: capi
properties:
capi:
tps:
listener_enabled: false
bbs:
ca_cert: (( grab meta.certs.diego.ca ))
.: (( inject meta.certs.diego.bbs.client ))
Expand Down
9 changes: 7 additions & 2 deletions base/loggregator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ instance_groups:
- name: consul_agent
release: consul
consumes:
consul: { from: consul_server }
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}
properties:
consul:
agent:
Expand Down Expand Up @@ -55,7 +57,9 @@ instance_groups:
- name: consul_agent
release: consul
consumes:
consul: { from: consul_server }
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}
properties:
consul:
agent:
Expand All @@ -68,6 +72,7 @@ instance_groups:
system_domain: (( grab params.system_domain ))
cc:
srv_api_uri: (( grab meta.cc.srv_api_uri ))
tls_port: (( grab meta.cc.tls_port ))
ssl:
skip_cert_verify: (( grab params.skip_ssl_validation ))
loggregator:
Expand Down
39 changes: 21 additions & 18 deletions base/nats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@
instance_groups:
- name: nats
jobs:
- name: consul_agent
release: consul
consumes:
consul: {from: consul_server}
- name: nats
release: nats
provides:
nats: {as: nats, shared: true}
properties:
nats:
debug: false
trace: false
monitor_port: 9222
prof_port: 0
port: 4222
- name: consul_agent
release: consul
consumes:
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}

machines: (( grab instance_groups.nats.networks[0].static_ips ))
user: nats_user
password: (( vault meta.vault "/nats:password" ))
- name: nats
release: nats
provides:
nats: {as: nats, shared: true}
properties:
nats:
debug: false
trace: false
monitor_port: 9222
prof_port: 0
port: 4222

machines: (( grab instance_groups.nats.networks[0].static_ips ))
user: nats_user
password: (( vault meta.vault "/nats:password" ))
4 changes: 3 additions & 1 deletion base/router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ instance_groups:
- name: consul_agent
release: consul
consumes:
consul: { from: consul_server }
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}
properties:
consul:
agent:
Expand Down
4 changes: 3 additions & 1 deletion base/uaa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ instance_groups:
- name: consul_agent
release: consul
consumes:
consul: { from: consul_server }
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}
properties:
consul:
agent:
Expand Down
4 changes: 3 additions & 1 deletion subkits/blobstore-webdav/blobstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ instance_groups:
- name: consul_agent
release: consul
consumes:
consul: { from: consul_server }
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}
properties:
consul:
agent:
Expand Down
7 changes: 6 additions & 1 deletion subkits/db-internal-postgres/db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
instance_groups:
- name: postgres
jobs:
- { name: consul_agent, release: consul, consumes: { consul: { from: consul_server } } }
- name: consul_agent
release: consul
consumes:
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}
- name: postgres
release: postgres
properties:
Expand Down
4 changes: 3 additions & 1 deletion subkits/haproxy-notls/haproxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ instance_groups:
- name: consul_agent
release: consul
consumes:
consul: { from: consul_server }
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}

- name: haproxy
release: haproxy
Expand Down
4 changes: 3 additions & 1 deletion subkits/haproxy-tls/haproxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ instance_groups:
- name: consul_agent
release: consul
consumes:
consul: { from: consul_server }
consul_common: {from: consul_common_link}
consul_server: nil
consul_client: {from: consul_client_link}

- name: haproxy
release: haproxy
Expand Down

0 comments on commit e835302

Please sign in to comment.