salt-winrepo icon indicating copy to clipboard operation
salt-winrepo copied to clipboard

Feature: Add option to cache installers on master

Open UtahDave opened this issue 11 years ago • 4 comments

Also, update the repo so the minions pull the installer from the master.

UtahDave avatar Jul 22 '13 21:07 UtahDave

It might be possible to kill two birds with one stone with this issue (https://github.com/saltstack/salt-winrepo/issues/37). Here is my crazy idea: Add a new winrepo field called source or mirror which is a list of sources for the installer file. This is then downloaded to the installer location and the minion continues to use the installer path just as it has always been done. When running genrepo any missing installers are automatically downloaded. This would mean that somebody could simply pull the entire list of sls files and have a fully functioning repository.

Bonus idea: A master repository is maintained in git where the init.sls files can be updated with the latest versions and installers. Then winrepo could act like a real package manager. Something like winrepo.update would download the latest init.sls files and pre download the installers.

blender:
  2.68:
    source: ['http://website.com/Blender2.68/blender-2.68-windows32.exe', 
    'http://some.other.website/whatever/Blender2.68/blender-2.68-windows32.exe']
    installer: 'salt://win/repo/blender/blender-2.68-windows32.exe'
    full_name:  'Blender'
    reboot: False
    install_flags: '/S'
    uninstaller: '%ProgramFiles(x86)%\Blender Foundation\Blender\uninstall.exe'
    uninstall_flags: '/S'

Crazybus avatar Jul 23 '13 19:07 Crazybus

I support this idea.

It would make possible not to provide internet or other access for all Windows machines but instead they would only need to have a connection to salt-master. And only salt-master needs to access internet or other internal resources in this case.

This could be a new runner, something like 'winrepo.update_installers' or 'winrepo.download_installers' or 'winrepo.fetch_installers'.

giner avatar Dec 10 '14 17:12 giner

+1 @UtahDave @twangboy I think this, or something like it, would be great. Indeed solving two things all in one.

TheBigBear avatar Jan 15 '16 17:01 TheBigBear

Yeah, I agree On Jan 15, 2016 9:39 AM, "TheBigBear" [email protected] wrote:

+1 @UtahDave https://github.com/UtahDave @twangboy https://github.com/twangboy I think this, or something like it, would be great. Indeed solving two things all in one.

— Reply to this email directly or view it on GitHub https://github.com/saltstack/salt-winrepo/issues/38#issuecomment-172028111 .

UtahDave avatar Jan 15 '16 17:01 UtahDave