address puppet 3.x deprecation warnings
This commit is contained in:
parent
9d56396a04
commit
af616677e6
7 changed files with 62 additions and 62 deletions
|
@ -1,5 +1,5 @@
|
||||||
// This file is managed by Puppet
|
// This file is managed by Puppet
|
||||||
// all local modifications will be overwritten
|
// all local modifications will be overwritten
|
||||||
|
|
||||||
Acquire::http { Proxy "<%= proxy %>:<%= port %>"; };
|
Acquire::http { Proxy "<%= @proxy %>:<%= @port %>"; };
|
||||||
Acquire::HTTP::Proxy::bugs.debian.org "DIRECT";
|
Acquire::HTTP::Proxy::bugs.debian.org "DIRECT";
|
||||||
|
|
|
@ -24,9 +24,9 @@ LISTCHANGES_PROFILE="<%= scope.lookupvar('apt::apticron::listchanges_profile') %
|
||||||
# of "hostname -f" for the system name in the mails it generates
|
# of "hostname -f" for the system name in the mails it generates
|
||||||
#
|
#
|
||||||
# SYSTEM="foobar.example.com"
|
# SYSTEM="foobar.example.com"
|
||||||
<%- unless scope.lookupvar('apt::apticron::system').to_s == "false" -%>
|
<% unless (v=scope.lookupvar('apt::apticron::system')).to_s == "false" -%>
|
||||||
<%= "SYSTEM=\"#{scope.lookupvar('apt::apticron::system')}\"" %>
|
SYSTEM="<%= v %>"
|
||||||
<%- end -%>
|
<% end -%>
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set IPADDRESSNUM if you would like to configure the maximal number of IP
|
# Set IPADDRESSNUM if you would like to configure the maximal number of IP
|
||||||
|
@ -34,9 +34,9 @@ LISTCHANGES_PROFILE="<%= scope.lookupvar('apt::apticron::listchanges_profile') %
|
||||||
# family type (inet, inet6), if available.
|
# family type (inet, inet6), if available.
|
||||||
#
|
#
|
||||||
# IPADDRESSNUM="1"
|
# IPADDRESSNUM="1"
|
||||||
<%- unless scope.lookupvar('apt::apticron::ipaddressnum').to_s == "false" -%>
|
<% unless (v=scope.lookupvar('apt::apticron::ipaddressnum')).to_s == "false" -%>
|
||||||
<%= "IPADDRESSNUM=\"#{scope.lookupvar('apt::apticron::ipaddressnum')}\"" %>
|
IPADDRESSNUM="<%= v %>"
|
||||||
<%- end -%>
|
<% end -%>
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set IPADDRESSES to a whitespace seperated list of reachable addresses for
|
# Set IPADDRESSES to a whitespace seperated list of reachable addresses for
|
||||||
|
@ -44,7 +44,7 @@ LISTCHANGES_PROFILE="<%= scope.lookupvar('apt::apticron::listchanges_profile') %
|
||||||
# "ip" command
|
# "ip" command
|
||||||
#
|
#
|
||||||
# IPADDRESSES="192.0.2.1 2001:db8:1:2:3::1"
|
# IPADDRESSES="192.0.2.1 2001:db8:1:2:3::1"
|
||||||
<%- unless scope.lookupvar('apt::apticron::ipaddresses').to_s == "false" -%>
|
<% unless (v=scope.lookupvar('apt::apticron::ipaddresses')).to_s == "false" -%>
|
||||||
<%= "IPADDRESSES=\"#{scope.lookupvar('apt::apticron::ipaddresses')}\"" %>
|
IPADDRESSES="<%= v %>"
|
||||||
<%- end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@ LISTCHANGES_PROFILE="<%= scope.lookupvar('apt::apticron::listchanges_profile') %
|
||||||
# of "hostname -f" for the system name in the mails it generates
|
# of "hostname -f" for the system name in the mails it generates
|
||||||
#
|
#
|
||||||
# SYSTEM="foobar.example.com"
|
# SYSTEM="foobar.example.com"
|
||||||
<%- unless scope.lookupvar('apt::apticron::system').to_s == "false" -%>
|
<% unless (v=scope.lookupvar('apt::apticron::system')).to_s == "false" -%>
|
||||||
<%= "SYSTEM=\"#{scope.lookupvar('apt::apticron::system')}\"" %>
|
SYSTEM="<%= v %>"
|
||||||
<%- end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -37,9 +37,9 @@ LISTCHANGES_PROFILE="<%= scope.lookupvar('apt::apticron::listchanges_profile') %
|
||||||
# family type (inet, inet6), if available.
|
# family type (inet, inet6), if available.
|
||||||
#
|
#
|
||||||
# IPADDRESSNUM="1"
|
# IPADDRESSNUM="1"
|
||||||
<%- unless scope.lookupvar('apt::apticron::ipaddressnum').to_s == "false" -%>
|
<% unless (v=scope.lookupvar('apt::apticron::ipaddressnum')).to_s == "false" -%>
|
||||||
<%= "IPADDRESSNUM=\"#{scope.lookupvar('apt::apticron::ipaddressnum')}\"" %>
|
IPADDRESSNUM="<%= v %>"
|
||||||
<%- end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -48,9 +48,9 @@ LISTCHANGES_PROFILE="<%= scope.lookupvar('apt::apticron::listchanges_profile') %
|
||||||
# "ip" command
|
# "ip" command
|
||||||
#
|
#
|
||||||
# IPADDRESSES="192.0.2.1 2001:db8:1:2:3::1"
|
# IPADDRESSES="192.0.2.1 2001:db8:1:2:3::1"
|
||||||
<%- unless scope.lookupvar('apt::apticron::ipaddresses').to_s == "false" -%>
|
<% unless (v=scope.lookupvar('apt::apticron::ipaddresses')).to_s == "false" -%>
|
||||||
<%= "IPADDRESSES=\"#{scope.lookupvar('apt::apticron::ipaddresses')}\"" %>
|
IPADDRESSES="<%= v %>"
|
||||||
<%- end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -25,9 +25,9 @@ LISTCHANGES_PROFILE="<%= scope.lookupvar('apt::apticron::listchanges_profile') %
|
||||||
# of "hostname -f" for the system name in the mails it generates
|
# of "hostname -f" for the system name in the mails it generates
|
||||||
#
|
#
|
||||||
# SYSTEM="foobar.example.com"
|
# SYSTEM="foobar.example.com"
|
||||||
<%- unless scope.lookupvar('apt::apticron::system').to_s == "false" -%>
|
<% unless (v=scope.lookupvar('apt::apticron::system')).to_s == "false" -%>
|
||||||
<%= "SYSTEM=\"#{scope.lookupvar('apt::apticron::system')}\"" %>
|
SYSTEM="<%= v %>"
|
||||||
<%- end -%>
|
<% end -%>
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set IPADDRESSNUM if you would like to configure the maximal number of IP
|
# Set IPADDRESSNUM if you would like to configure the maximal number of IP
|
||||||
|
@ -35,9 +35,9 @@ LISTCHANGES_PROFILE="<%= scope.lookupvar('apt::apticron::listchanges_profile') %
|
||||||
# family type (inet, inet6), if available.
|
# family type (inet, inet6), if available.
|
||||||
#
|
#
|
||||||
# IPADDRESSNUM="1"
|
# IPADDRESSNUM="1"
|
||||||
<%- unless scope.lookupvar('apt::apticron::ipaddressnum').to_s == "false" -%>
|
<% unless (v=scope.lookupvar('apt::apticron::ipaddressnum')).to_s == "false" -%>
|
||||||
<%= "IPADDRESSNUM=\"#{scope.lookupvar('apt::apticron::ipaddressnum')}\"" %>
|
IPADDRESSNUM="<%= v %>"
|
||||||
<%- end -%>
|
<% end -%>
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set IPADDRESSES to a whitespace separated list of reachable addresses for
|
# Set IPADDRESSES to a whitespace separated list of reachable addresses for
|
||||||
|
@ -45,9 +45,9 @@ LISTCHANGES_PROFILE="<%= scope.lookupvar('apt::apticron::listchanges_profile') %
|
||||||
# "ip" command
|
# "ip" command
|
||||||
#
|
#
|
||||||
# IPADDRESSES="192.0.2.1 2001:db8:1:2:3::1"
|
# IPADDRESSES="192.0.2.1 2001:db8:1:2:3::1"
|
||||||
<%- unless scope.lookupvar('apt::apticron::ipaddresses').to_s == "false" -%>
|
<% unless (v=scope.lookupvar('apt::apticron::ipaddresses')).to_s == "false" -%>
|
||||||
<%= "IPADDRESSES=\"#{scope.lookupvar('apt::apticron::ipaddresses')}\"" %>
|
IPADDRESSES=<%= v %>"
|
||||||
<%- end -%>
|
<% end -%>
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set NOTIFY_HOLDS="0" if you don't want to be notified about new versions of
|
# Set NOTIFY_HOLDS="0" if you don't want to be notified about new versions of
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# basic
|
# basic
|
||||||
deb <%= debian_url=scope.lookupvar('apt::debian_url') %> <%= codename %> <%= lrepos=scope.lookupvar('apt::real_repos') %>
|
deb <%= debian_url=scope.lookupvar('apt::debian_url') %> <%= codename %> <%= lrepos=scope.lookupvar('apt::real_repos') %>
|
||||||
<% if scope.lookupvar('apt::include_src') -%>
|
<% if include_src=scope.lookupvar('apt::include_src') -%>
|
||||||
deb-src <%= debian_url %> <%= codename %> <%= lrepos %>
|
deb-src <%= debian_url %> <%= codename %> <%= lrepos %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ deb-src <%= debian_url %> <%= codename %> <%= lrepos %>
|
||||||
deb <%= security_url=scope.lookupvar('apt::security_url') %> <%= codename %>/updates <%= lrepos %>
|
deb <%= security_url=scope.lookupvar('apt::security_url') %> <%= codename %>/updates <%= lrepos %>
|
||||||
<% if include_src -%>
|
<% if include_src -%>
|
||||||
deb-src <%= security_url %> <%= codename %>/updates <%= lrepos %>
|
deb-src <%= security_url %> <%= codename %>/updates <%= lrepos %>
|
||||||
<% end -%>
|
<% end
|
||||||
<% end -%>
|
end -%>
|
||||||
|
|
||||||
# backports
|
# backports
|
||||||
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
|
<% if (release == "testing" || release == "unstable" || release == "experimental") -%>
|
||||||
|
@ -26,8 +26,8 @@ deb-src <%= security_url %> <%= codename %>/updates <%= lrepos %>
|
||||||
deb <%= backports_url=scope.lookupvar('apt::backports_url') %> <%= codename %>-backports <%= lrepos %>
|
deb <%= backports_url=scope.lookupvar('apt::backports_url') %> <%= codename %>-backports <%= lrepos %>
|
||||||
<% if include_src -%>
|
<% if include_src -%>
|
||||||
deb-src <%= backports_url %> <%= codename %>-backports <%= lrepos %>
|
deb-src <%= backports_url %> <%= codename %>-backports <%= lrepos %>
|
||||||
<% end -%>
|
<% end
|
||||||
<% end -%>
|
end -%>
|
||||||
|
|
||||||
<% if use_volatile=scope.lookupvar('apt::use_volatile') -%>
|
<% if use_volatile=scope.lookupvar('apt::use_volatile') -%>
|
||||||
# volatile
|
# volatile
|
||||||
|
@ -37,16 +37,16 @@ deb-src <%= backports_url %> <%= codename %>-backports <%= lrepos %>
|
||||||
deb <%= debian_url %> <%= codename %>-updates <%= lrepos %>
|
deb <%= debian_url %> <%= codename %>-updates <%= lrepos %>
|
||||||
<% if include_src -%>
|
<% if include_src -%>
|
||||||
deb-src <%= debian_url %> <%= codename %>-updates <%= lrepos %>
|
deb-src <%= debian_url %> <%= codename %>-updates <%= lrepos %>
|
||||||
<% end -%>
|
<% end
|
||||||
<% end -%>
|
end
|
||||||
<% end -%>
|
end -%>
|
||||||
|
|
||||||
<% if next_release=scope.lookupvar('apt::use_next_release') -%>
|
<% if next_release=scope.lookupvar('apt::use_next_release') -%>
|
||||||
### Debian next: <%= next_release=scope.lookupvar('apt::next_release') ; next_codename=scope.lookupvar('apt::next_codename') %>
|
### Debian next: <%= next_release=scope.lookupvar('apt::next_release') ; next_codename=scope.lookupvar('apt::next_codename') %>
|
||||||
|
|
||||||
# basic
|
# basic
|
||||||
deb <%= debian_url %> <%= next_codename %> <%= lrepos %>
|
deb <%= debian_url %> <%= next_codename %> <%= lrepos %>
|
||||||
<% if include_src then -%>
|
<% if include_src -%>
|
||||||
deb-src <%= debian_url %> <%= next_codename %> <%= lrepos %>
|
deb-src <%= debian_url %> <%= next_codename %> <%= lrepos %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
@ -57,8 +57,8 @@ deb-src <%= debian_url %> <%= next_codename %> <%= lrepos %>
|
||||||
deb <%= security_url %> <%= next_codename %>/updates <%= lrepos %>
|
deb <%= security_url %> <%= next_codename %>/updates <%= lrepos %>
|
||||||
<% if include_src then -%>
|
<% if include_src then -%>
|
||||||
deb-src <%= security_url %> <%= next_codename %>/updates <%= lrepos %>
|
deb-src <%= security_url %> <%= next_codename %>/updates <%= lrepos %>
|
||||||
<% end -%>
|
<% end
|
||||||
<% end -%>
|
end -%>
|
||||||
|
|
||||||
<% if use_volatile -%>
|
<% if use_volatile -%>
|
||||||
# volatile
|
# volatile
|
||||||
|
@ -66,9 +66,9 @@ deb-src <%= security_url %> <%= next_codename %>/updates <%= lrepos %>
|
||||||
# There is no volatile archive for <%= next_release %>
|
# There is no volatile archive for <%= next_release %>
|
||||||
<% else -%>
|
<% else -%>
|
||||||
deb <%= debian_url %> <%= next_codename %>-updates <%= lrepos %>
|
deb <%= debian_url %> <%= next_codename %>-updates <%= lrepos %>
|
||||||
<% if include_src then -%>
|
<% if include_src -%>
|
||||||
deb-src <%= debian_url %> <%= next_codename %>-updates <%= lrepos %>
|
deb-src <%= debian_url %> <%= next_codename %>-updates <%= lrepos %>
|
||||||
<% end -%>
|
<% end
|
||||||
<% end -%>
|
end
|
||||||
<% end -%>
|
end
|
||||||
<% end -%>
|
end -%>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Package: <%= real_package %>
|
Package: <%= @real_package %>
|
||||||
Pin: <%= pin %>
|
Pin: <%= @pin %>
|
||||||
Pin-Priority: <%= priority %>
|
Pin-Priority: <%= @priority %>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Package: <%= real_package %>
|
Package: <%= @real_package %>
|
||||||
Pin: release a=<%= release %>
|
Pin: release a=<%= @release %>
|
||||||
Pin-Priority: <%= priority %>
|
Pin-Priority: <%= @priority %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue