A small & simple utility charm: unattended
Paul Gear
paul.gear at canonical.com
Fri Apr 14 12:46:29 UTC 2017
Hi all,
I have a few test environments where I need to leave machines running
for days or weeks at a time, and they're not important enough to use up
Landscape or Canonical live patching licence slots, but I don't want to
leave them open to the Internet with possible security vulnerabilities.
So I created a little charm called unattended, which configures
unattended-upgrades and configures it to automatically reboot the
system. It shows important information in juju status so you can be
reminded about pending reboots or required security patches. Here are
some examples of what you might see in juju status when using it:
http://pastebin.ubuntu.com/24379952/ http://pastebin.ubuntu.com/24379971/
This is designed to be a small, simple subordinate charm which you can
add to your deployments with minimal overhead; it doesn't use reactive,
and a lot of it is written in bash. It can be found at
https://github.com/paulgear/charm-unattended and
https://code.launchpad.net/charm-unattended/
Just to reiterate, the unattended charm AUTOMATICALLY REBOOTS the juju
unit BY DEFAULT, if unattended-upgrades decides it is necessary. (This
is configurable.) Feedback, questions, MPs, etc. welcome.
--
Regards,
Paul Gear
Site Reliability Engineer
Canonical - Information Systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 837 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170414/cf3b186e/attachment.pgp>
More information about the Juju
mailing list