Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9313422
unattended-upgrades.erb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Subscribers
None
unattended-upgrades.erb
View Options
// This file managed by Puppet
// Automatically upgrade packages from these (origin:archive) pairs
//
// Note that in Ubuntu security updates may pull in new dependencies
// from non-security sources (e.g. chromium). By allowing the release
// pocket these get automatically pulled in.
<%-
if
@legacy_origin
-%>
Unattended-Upgrade::Allowed-Origins {
<%-
else
-%>
Unattended-Upgrade::Origins-Pattern {
<%-
end
-%>
<%
@origins
.
each
do
|
origin
|
-%>
"
<%=
origin
%>
";
<%
end
-%>
<%
@extra_origins
.
each
do
|
origin
|
-%>
"
<%=
origin
%>
";
<%
end
-%>
};
// List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {
<%
@blacklist
.
each
do
|
package
|
-%>
"
<%=
package
%>
";
<%
end
-%>
};
// List of days in the week that updates should be applied.
// The days can be specified as localized abbreviated or full names.
// Or as integers where "0" is Sunday, "1" is Monday etc.
// Require Unattended-upgrades version >=0.91 to work, else it is ignored
Unattended-Upgrade::Update-Days {
<%
@days
.
each
do
|
day
|
-%>
"
<%=
day
.
capitalize
%>
";
<%
end
-%>
};
// This option allows you to control if on a unclean dpkg exit
// unattended-upgrades will automatically run
// dpkg --force-confold --configure -a
// The default is true, to ensure updates keep getting installed
Unattended-Upgrade::AutoFixInterruptedDpkg "
<%=
@_auto
[
'fix_interrupted_dpkg'
].
to_s
%>
";
// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
Unattended-Upgrade::MinimalSteps "
<%=
@minimal_steps
.
to_s
%>
";
// Install all unattended-upgrades when the machine is shuting down
// instead of doing it in the background while the machine is running
// This will (obviously) make shutdown slower
Unattended-Upgrade::InstallOnShutdown "
<%=
@install_on_shutdown
.
to_s
%>
";
<%-
unless
@_mail
[
'to'
].
nil?
-%>
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed. E.g. "user@example.com"
Unattended-Upgrade::Mail "
<%=
@_mail
[
'to'
]
%>
";
<%-
if
@_mail
[
'only_on_error'
]
-%>
// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
Unattended-Upgrade::MailOnlyOnError "
<%=
@_mail
[
'only_on_error'
].
to_s
%>
";
<%-
end
-%>
<%-
end
-%>
<%-
if
@sender
-%>
// Use the specified value in the "From" field of outgoing mails.
// Defaults to "root"
Unattended-Upgrade::Sender "
<%=
@sender
%>
";
<%-
end
-%>
// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "
<%=
@_auto
[
'remove'
].
to_s
%>
";
// Automatically reboot *WITHOUT CONFIRMATION*
// if the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "
<%=
@_auto
[
'reboot'
].
to_s
%>
";
// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
// Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "
<%=
@_auto
[
'reboot_time'
].
to_s
%>
";
<%-
unless
@dl_limit
.
nil?
-%>
// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
Acquire::http::Dl-Limit "
<%=
@dl_limit
%>
";
<%-
end
-%>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 11:38 AM (4 d, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3281289
Attached To
rSPUUPD Unattended upgrades Puppet module
Event Timeline
Log In to Comment