summaryrefslogtreecommitdiff
path: root/manifests/reboot_required_notify
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-08-31 20:01:22 +0000
committerintrigeri <intrigeri@boum.org>2015-08-31 20:03:40 +0000
commit3630285006d9fb60c5fbecebc976623c37dd1395 (patch)
treee73010df64c1c16f0bb3c0f9f6ead5f7ce808141 /manifests/reboot_required_notify
parenta82e3ae272c8510b3dc30f499316a7bfb518d330 (diff)
reboot_required_notify: add initial support for Jessie and newer.
Note that reboot-notifier is only in stretch/sid at the moment, so to use this one needs to configure APT pinning themselves to make this package installable.
Diffstat (limited to 'manifests/reboot_required_notify')
-rw-r--r--manifests/reboot_required_notify/jessie.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/reboot_required_notify/jessie.pp b/manifests/reboot_required_notify/jessie.pp
new file mode 100644
index 0000000..51b75a2
--- /dev/null
+++ b/manifests/reboot_required_notify/jessie.pp
@@ -0,0 +1,13 @@
+class apt::reboot_required_notify::jessie ($ensure = present) {
+
+ # On Jessie and newer, this package installs the script that created
+ # /var/run/reboot-required*.
+ # This script (/usr/share/update-notifier/notify-reboot-required) is
+ # triggered e.g. by kernel packages.
+ # This package also sends a daily email to the administrator when a system
+ # reboot is required, e.g. due to a kernel update.
+ package { 'reboot-notifier':
+ ensure => $ensure,
+ }
+
+}