collective / collective.hostout

zc.buildout deployment and remote control
22 stars 7 forks source link

Don't always apt-get update #17

Open jean opened 12 years ago

jean commented 12 years ago

Is there a way to check if we're up to date? api.sudo('apt-get update') takes quite a while on a slow link.

auspex commented 12 years ago

I'm pretty sure there is no other way to know if you're up-to-date. If you can run a cron job to do a regular "apt-get update" on the host, the one performed by hostout will be much faster, and there's no downside to having it run automatically.

derek

jean commented 12 years ago

From where I'm sitting (testing against a local VM), update on a fully up-to-date host takes more than a minute:

vagrant@natty:~$ time sudo apt-get update [...] real 1m21.235s user 0m0.872s sys 0m4.924s

Possibly update can be turned off in such cases.

I guess update needs to run in case there were security patches?