How can I keep multiple droplets updated?

Posted October 8, 2014 6.3k views

With all of the new shell exploits coming out I want to ensure all of my droplets are secure. How can someone automate this process?

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

On Ubuntu you can automate system updates with the unattended-upgrades package. The documentation for this can be found here:

On CentOS you can set up automatic updates with the yum-cron package setting up your configuration in /etc/sysconfig/yum-cron

One thing to keep in mind is avoiding automatic updates to your kernel since allowing the kernel within your droplet to be out of sync with the kernel image assigned to your droplet could result in issues.

  • This is exactly what I was looking for. Thank you!

  • I was looking for an answer to this as well. Thanks for the advice and tip on keeping kernel updates out. is this standard procedure recommended for all droplets and for as long as the droplet’s existence?

If you use a debian-based distribution, tools like “cron-apt” can help.