vagrant-smartos / vagrant-smartos-zones

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

should support arbitrary urls for imgadm import of zone images #24

Open bixu opened 9 years ago

bixu commented 9 years ago

this will help with testing experimental images

bixu commented 9 years ago

in the short term we can just do 'imgadm sources -a https://updates.joyent.com' during GZ setup to give us more repos to hit

bixu commented 9 years ago

see https://github.com/vagrant-smartos/vagrant-smartos-zones/blob/support_experimental_zone_images/lib/vagrant/smartos/zones/cap/imgadm_import.rb

sax commented 9 years ago

That makes sense. The check to see whether the zone is locally available has already happened.

How long does imgadm sources -a usually take?

Just wondering if we should try to import first, then update and retry once on failure. It's probably not worth the extra code if the update is fast, though.

bixu commented 9 years ago

I think this just adds a repo for imgadm to check against - no indexing or anything

sax commented 9 years ago

Oh! Yeah, then this looks great.

bixu commented 9 years ago

https://github.com/vagrant-smartos/vagrant-smartos-zones/pull/25

sax commented 9 years ago

You could also add another global_zone config option for additional image sources.

bixu commented 9 years ago

i'm done for tonight ;)