[Lxc-users] Batch invocation of apt-get?

Trent W. Buck twb at cybersource.com.au
Thu Feb 17 04:57:25 UTC 2011


Milan Zamazal <pdm at zamazal.org> writes:

>>>>>> "TWB" == Trent W Buck <twb at cybersource.com.au> writes:
>
>     TWB> Sounds like you want a change management system, like puppet or
>     TWB> cfengine.
>
> I just run about 20 virtual servers / containers, each of them running a
> different kind of service, so these tools are apparently not for me.
>
>     TWB> By blowing away and rebuilding containers that aren't in
>     TWB> production (which I have fully scripted), and by ssh'ing into
>     TWB> containers that are in production.
>
> OK, so it seems there is no special tool to do it.  In such a case I can
> use something similar as you.  Another way might be to initiate
> automated upgrades from the host, e.g. by putting something into
> .../CONTAINER/etc/cron.d/ or so when upgrades should be performed; this
> would also make stopped host to perform the upgrade as soon as they are
> started.

For Ubuntu/Debian, at least, automatic application of security (or all)
updates via a daily cron job is an already-solved problem.  IIRC you
want to look into the "unattended-upgrades" package.





More information about the lxc-users mailing list