-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache omnibus download #33
Conversation
@lamont-granquist I believe this also fixes a not yet reported bug in master where |
this PR is also a prerequisite for accomodating caching in chef-boneyard/vagrant-omnibus#22 |
actually the 'md5' is for MacOSX where i get this output: % md5 .tcshrc
MD5 (.tcshrc) = 6c08bf8bfa3edc6997273e7d6eeada94
|
…(as it was before)
@lamont-granquist thanks! undid the "fix" and reverted back to |
Cache omnibus download
@lamont-granquist thanks! btw: any estimate when this will go live? |
we need to push out a patch to allow installing .pkg's on macs which needs to happen soon so that we can do an rc release of chef... so, will be working on it next week... not sure exactly when it'll get released but it'll be blocking stuff we need to get done well in advance of chefconf |
As discussed in fgrehm/vagrant-cachier#13 the
install.sh
script should not download the omnibus package over and over again if the-d
or-f
option is used and the file is locally available AND the checksum matches (e.g. when using vagrant-cachier or an nfs mount).The behaviour is now as proposed here:
$tmp_dir
(which will be removed afterwards)-d
or-f
are specified the omnibus package is downloaded to$tmp_dir
as well (i.e. it will also be cleaned up afterwards)-d
(directory) is specified the omnibus package will be downloaded to that directory with its original filename (as specified in the metadata file). If that file already exists in the given location AND the checksum matches it will just use the already present file instead of downloading again.-f
(path to filename) is specified the omnibus package will be downloaded to that file. If a file with that name already exists AND the checksum matches it will just use the already present file instead of downloading again.In essence this means that the we will always check the web service for the latest filename / checksums, but allow for caching if either
-d
or-f
are used.