tracks BOSH stemcells published on https://bosh.io
Go Shell
Latest commit 889a220 Nov 11, 2016 @ljfranklin ljfranklin committed with zachgersh Add additional tweaks to HTTP / TCP settings to improve retries
- Retry on temporary errors when reading HTTP body
  - Our ECONNRESET check did not actually work, but this error is
    covered correctly under Temporary errors
- Add logging when an error occurs and we retry
- Re-added TCP keepalive flag with explanation

Signed-off-by: Brian Cunnie <bcunnie@pivotal.io>

[#134011373](https://www.pivotaltracker.com/story/show/134011373)

README.md

bosh.io stemcell resource

Tracks the versions of a stemcell on bosh.io.

For example, to automatically consume bosh-aws-xen-ubuntu-trusty-go_agent:

resources:
- name: aws-stemcell
  type: bosh-io-stemcell
  source:
    name: bosh-aws-xen-ubuntu-trusty-go_agent

Source Configuration

  • name: Required. The name of the stemcell.
  • force_regular: Optional. Default false. By default, the resource will always download light stemcells for IaaSes that support light stemcells. If force_regular is true, the resource will ignore light stemcells and always download regular stemcells.

Behavior

check: Check for new versions of the stemcell.

Detects new versions of the stemcell that have been published to bosh.io. If no version is specified, check returns the latest version, otherwise check returns all versions from the version specified on.

in: Fetch a version of the stemcell.

Fetches a given stemcell, placing the following files in the destination:

  • version: The version number of the stemcell.
  • url: A URL that can be used to download the stemcell tarball.
  • sha1: The SHA1 of the stemcell
  • stemcell.tgz: The stemcell tarball, if the tarball param is true.

Parameters

  • tarball: Optional. Default true. Fetch the stemcell tarball.
  • preserve_filename: Optional. Default false. Keep the original filename of the stemcell.