A resource to deploy bosh-init manifests. The current deployment status will be stored in AWS S3.
The worker, where the resource is running, has to have direct network access to the deployed boxes. bosh-init
will try to connect to the VM's using ports 22
and 6868
.
Before the resource can be used it has to be registered in the pipeline as a resource type.
resource_types:
- name: bosh-init-deployment
type: docker-image
source:
repository: teamidefix/bosh-init-deployment-resource
access_key_id
: Required. AWS access key ID to access the S3 bucket to store current deployment stat.secret_access_key
: Required. AWS access key secret to access the s3 bucket to store current deployment stat.bucket_name
: Required. S3 Bucket, where stats file is stored.region
: Required. AWS S3 region.
Run bosh-init
using the provided manifest file.
-
stats_file_key
: Required. Location where the stats file is stored in the bucket. -
manifest_file
: Required. Path to manifest file, which will be deployed by bosh-init. -
key_file
: Required. Path to key file, used in the manifest.
resources:
- name: bosh-init
type: bosh-init-deployment
source:
access_key_id: {{bosh-init-aws-access-key-id}}
secret_access_key: {{bosh-init-aws-secret-access-key}}
bucket_name: {{bosh-init-aws-bucket}}
region: us-east-1
jobs:
- name: deploy
plan:
- put: bosh-init
params:
stats_file_key: current-deployment
manifest_file: manifest/current-deployment/manifest.yml
key_file: manifest/current-deployment/microbosh.pem