Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #375 from raphink/dev/facts_perfs
[puppet-modules/puppetlabs-apt.git]
/
templates
/
50unattended-upgrades.erb
diff --git
a/templates/50unattended-upgrades.erb
b/templates/50unattended-upgrades.erb
index 4df0f74401f01d104115a4e74036de1c95fd9dc3..1177922de05c27e4ef3a60607910e7d390ac87a0 100644
(file)
--- a/
templates/50unattended-upgrades.erb
+++ b/
templates/50unattended-upgrades.erb
@@
-1,5
+1,9
@@
// Automatically upgrade packages from these (origin:archive) pairs
// Automatically upgrade packages from these (origin:archive) pairs
+<%- if @legacy_origin -%>
Unattended-Upgrade::Allowed-Origins {
Unattended-Upgrade::Allowed-Origins {
+<%- else -%>
+Unattended-Upgrade::Origins-Pattern {
+<%- end -%>
<% @origins.each do |origin| -%>
"<%= origin %>";
<% end -%>
<% @origins.each do |origin| -%>
"<%= origin %>";
<% end -%>