<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=ReleaseEngineering%2FPuppetAgain%2FModules%2Fneeds_reboot</id>
	<title>ReleaseEngineering/PuppetAgain/Modules/needs reboot - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=ReleaseEngineering%2FPuppetAgain%2FModules%2Fneeds_reboot"/>
	<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=ReleaseEngineering/PuppetAgain/Modules/needs_reboot&amp;action=history"/>
	<updated>2026-10-28T17:05:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=ReleaseEngineering/PuppetAgain/Modules/needs_reboot&amp;diff=706409&amp;oldid=prev</id>
		<title>Djmitche: Created page with &quot;Hosts - even UNIX - often need to be rebooted to get certain updates.  For example, to perform a kernel upgrade or boot-time configuration parameter.  It would be bad if puppe...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=ReleaseEngineering/PuppetAgain/Modules/needs_reboot&amp;diff=706409&amp;oldid=prev"/>
		<updated>2013-09-11T15:49:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Hosts - even UNIX - often need to be rebooted to get certain updates.  For example, to perform a kernel upgrade or boot-time configuration parameter.  It would be bad if puppe...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Hosts - even UNIX - often need to be rebooted to get certain updates.  For example, to perform a kernel upgrade or boot-time configuration parameter.&lt;br /&gt;
&lt;br /&gt;
It would be bad if puppet did this on its own.  Very bad.  Humans should do the rebooting, but puppet should let them know which machines need it.  That&amp;#039;s where this module comes in&lt;br /&gt;
&lt;br /&gt;
= Reasons =&lt;br /&gt;
&lt;br /&gt;
The structure of this module is that a reboot might be required for any of a variety of &amp;#039;&amp;#039;reasons&amp;#039;&amp;#039;.  Each reason for a reboot has a short name and is detected by a small ruby script.&lt;br /&gt;
&lt;br /&gt;
== Adding New Reasons ==&lt;br /&gt;
&lt;br /&gt;
To add a new reason, add a new file in &amp;lt;tt&amp;gt;modules/needs_reboot/lib/facter/needs_reboot/my_reason.rb&amp;lt;/tt&amp;gt;, with the following pattern:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# This Source Code Form is subject to the terms of the Mozilla Public&lt;br /&gt;
# License, v. 2.0. If a copy of the MPL was not distributed with this&lt;br /&gt;
# file, You can obtain one at http://mozilla.org/MPL/2.0/.&lt;br /&gt;
&lt;br /&gt;
require &amp;#039;facter/needs_reboot&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Facter::NeedsReboot.newreason(&amp;quot;my_reason&amp;quot;) do&lt;br /&gt;
  true # return a boolean&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will be pluginsync&amp;#039;d and used to determine the relevant facts automatically.&lt;br /&gt;
&lt;br /&gt;
= Facts =&lt;br /&gt;
&lt;br /&gt;
Each reason has a corresponding &amp;lt;tt&amp;gt;needs_reboot_for_${name}&amp;lt;/tt&amp;gt;, which is true if that reason applies.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;needs_reboot&amp;lt;/tt&amp;gt; fact is a human-readable list of all reasons that a reboot is required.&lt;br /&gt;
&lt;br /&gt;
Any of these facts can be used in a dashboard to search for hosts needing a reboot.&lt;br /&gt;
&lt;br /&gt;
= MOTD =&lt;br /&gt;
&lt;br /&gt;
The module also adds a line to the system MOTD when a reboot is required.  This will indicate to users accessing the system that a reboot would be handy, helping to take advantage of opportunities.&lt;/div&gt;</summary>
		<author><name>Djmitche</name></author>
	</entry>
</feed>