vagrant-smartos / vagrant-smartos-zones

Manage SmartOS local zones in Vagrant
MIT License
54 stars 9 forks source link

make it easy to pull the 'latest' platform image #4

Closed bixu closed 9 years ago

bixu commented 9 years ago

would be great to be able to do something like config.global_zone.platform_image = 'latest' in my Vagrantfile

sax commented 9 years ago

Yeah, I was thinking of this the other day. Right now the bit that checks for and downloads the platform image lives here: https://github.com/vagrant-smartos/vagrant-smartos-zones/blob/master/lib/vagrant/smartos/zones/util/platform_images.rb

This can just check for the magic string latest and execute another code path before continuing with what's already there:

tylerflint commented 9 years ago

Yup. +1

sax commented 9 years ago

@bixu this should work with the latest pre-release (that I just pushed to rubygems). Want to give it a try?

sax commented 9 years ago

I've started using this in my local development, and it seems to work!