This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the instance bootstrap method in BOSH links
- Add new bootstrap field of the type boolean into JobInstance struct - Add unit tests for ensuring generated job instances have the proper information - Only set bootstrap to TRUE, if the instance is the one with index 0 - Extend the redis bosh release asset, to support the rendering of `redis.conf.erb`, where #596 was originated.
- Loading branch information
Showing
10 changed files
with
798 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: redis-deployment | ||
director_uuid: "" | ||
instance_groups: | ||
- name: redis-slave | ||
instances: 1 | ||
azs: [z1, z2] | ||
jobs: | ||
- name: redis-server | ||
release: redis | ||
properties: | ||
quarks: | ||
consumes: | ||
redis: | ||
instances: | ||
- address: foo-deployment-redis-slave-0 | ||
az: z1 | ||
bootstrap: true | ||
index: 0 | ||
instance: 0 | ||
name: redis-slave-redis-server | ||
networks: null | ||
- address: foo-deployment-redis-slave-1 | ||
az: z2 | ||
bootstrap: false | ||
index: 1 | ||
instance: 0 | ||
name: redis-slave-redis-server | ||
networks: null | ||
properties: | ||
base_dir: /var/vcap/store/redis | ||
password: null | ||
port: 6379 | ||
instances: | ||
- address: foo-deployment-redis-slave-0 | ||
az: z1 | ||
bootstrap: true | ||
index: 0 | ||
instance: 0 | ||
name: redis-slave-redis-server | ||
networks: null | ||
- address: foo-deployment-redis-slave-1 | ||
az: z2 | ||
bootstrap: false | ||
index: 1 | ||
instance: 0 | ||
name: redis-slave-redis-server | ||
networks: null | ||
bpm: | ||
processes: | ||
- args: | ||
- /var/vcap/jobs/redis/config/redis.conf | ||
ephemeral_disk: true | ||
executable: /var/vcap/packages/redis-4/bin/redis-server | ||
hooks: | ||
pre_start: /var/vcap/jobs/redis/bin/pre_start.sh | ||
limits: | ||
open_files: 12500 | ||
name: redis | ||
persistent_disk: true | ||
unsafe: {} | ||
unsupported_template: false | ||
debug: false | ||
envs: null | ||
replication: true | ||
is_addon: false | ||
ports: null | ||
post_start: {} | ||
pre_render_scripts: | ||
bpm: null | ||
ig_resolver: null | ||
jobs: null | ||
release: "" | ||
run: | ||
healthcheck: null | ||
security_context: null | ||
networks: | ||
- name: default | ||
persistent_disk_type: medium | ||
stemcell: default | ||
vm_resources: null | ||
vm_type: medium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.