Skip to content

s3 custom blobstore ops #1251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions operations/use-s3-custom-blobstore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
## api / cloud_controller_ng

- type: replace
path: /instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/buildpacks/fog_connection
error: "Please apply 'use-external-blobstore.yml' before applying 'use-s3-blobstore.yml'."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't produce this error message. If I interpolate just this ops file with cf-deployment.yml, I get:

$ bosh interpolate -o ./operations/use-s3-custom-blobstore.yml cf-deployment.yml
Error 'operation [0] in ./operations/use-s3-custom-blobstore.yml failed': Expected to find a map key 'fog_connection' for path '/instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/buildpacks/fog_connection' (found map keys: 'blobstore_type', 'webdav_config')

Exit code 1

Should we leave out this error message?

value: &blobstore-properties
# https://docs.cloudfoundry.org/deploying/common/cc-blobstore-config.html#fog-s3-other
provider: AWS
aws_access_key_id: ((blobstore_access_key_id))
aws_secret_access_key: ((blobstore_secret_access_key))
region: ((aws_region))
aws_signature_version: ((blobstore_signature_version))
endpoint: ((blobstore_endpoint))
path_style: ((blobstore_path_style))


- type: replace
path: /instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/droplets/fog_connection
value: *blobstore-properties

- type: replace
path: /instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/packages/fog_connection
value: *blobstore-properties

- type: replace
path: /instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/resource_pool/fog_connection
value: *blobstore-properties


## cc-worker / cloud_controller_worker

- type: replace
path: /instance_groups/name=cc-worker/jobs/name=cloud_controller_worker/properties/cc/buildpacks/fog_connection
value: *blobstore-properties

- type: replace
path: /instance_groups/name=cc-worker/jobs/name=cloud_controller_worker/properties/cc/droplets/fog_connection
value: *blobstore-properties

- type: replace
path: /instance_groups/name=cc-worker/jobs/name=cloud_controller_worker/properties/cc/packages/fog_connection
value: *blobstore-properties

- type: replace
path: /instance_groups/name=cc-worker/jobs/name=cloud_controller_worker/properties/cc/resource_pool/fog_connection
value: *blobstore-properties


## scheduler / cloud_controller_clock

- type: replace
path: /instance_groups/name=scheduler/jobs/name=cloud_controller_clock/properties/cc/buildpacks/fog_connection
value: *blobstore-properties

- type: replace
path: /instance_groups/name=scheduler/jobs/name=cloud_controller_clock/properties/cc/droplets/fog_connection
value: *blobstore-properties

- type: replace
path: /instance_groups/name=scheduler/jobs/name=cloud_controller_clock/properties/cc/packages/fog_connection
value: *blobstore-properties

- type: replace
path: /instance_groups/name=scheduler/jobs/name=cloud_controller_clock/properties/cc/resource_pool/fog_connection
value: *blobstore-properties