Modify jobs/packages/vmrun_cpi/cpi.erb to act as a shim
[x] On hypervisor: Make a copy of the cpi-{platform}, config.json and stemcell store on the hypervisor VM.
[x] On hypervisor: Ensure authorized_keys has entry for restricted,command="<cpi> -configPath <config.json>" ssh-rsa...
[x] On director: call actual cpi-{platform} remotely over SSH using hypervisor machine
Change create_stemcell to optionally ignore imagePath and instead use a stemcell store on hypervisor machine of unextracted pristine stemcells.
[x] Would use cloudProperty metadata then scan all hypervisor stemcells' stemcell.MF manifests to find match.
[x] Works around hypervisor CPI-over-ssh not having access to director's imagePath location
[x] This could also enable light stemcells for use both in create-env / upload-stemcell / deploy for significant speed up by not verifying stemcells every time.
Requirements:
jobs/packages/vmrun_cpi/cpi.erb
to act as a shimcpi-{platform}
,config.json
and stemcell store on the hypervisor VM.authorized_keys
has entry forrestricted,command="<cpi> -configPath <config.json>" ssh-rsa...
cpi-{platform}
remotely over SSH using hypervisor machinecreate_stemcell
to optionally ignoreimagePath
and instead use a stemcell store on hypervisor machine of unextracted pristine stemcells.stemcell.MF
manifests to find match.imagePath
locationlight
stemcells for use both increate-env
/upload-stemcell
/deploy
for significant speed up by not verifying stemcells every time.WIP:
branch: bosh-deployment