}
default: {
package { acpid: ensure => installed }
- case getfromhash($nodeinfo, 'squeeze') {
- true: { package { acpi-support-base: ensure => installed } }
+ case $lsbdistcodename {
+ 'lenny': { }
+ default: { package { acpi-support-base: ensure => installed } }
}
}
}
"hp-health": ensure => installed;
"arrayprobe": ensure => installed;
}
- case getfromhash($nodeinfo, 'squeeze') {
- true: {}
- default: {
+ case $lsbdistcodename {
+ 'lenny': {
package {
"cpqarrayd": ensure => installed;
}
## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
##
-<% if nodeinfo.has_key?('squeeze') and nodeinfo['squeeze'] %>
-deb http://mirror.netcologne.de/debian-backports/ squeeze-backports main contrib non-free
-<% else %>
-deb http://mirror.netcologne.de/debian-backports/ lenny-backports main contrib non-free
+<% if lsbdistcodename != 'n/a' %>
+deb http://backports.debian.org/debian-backports/ <%= lsbdistcodename %>-backports main contrib non-free
<% end %>
## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
##
-<% if nodeinfo.has_key?('squeeze') and nodeinfo['squeeze'] %>
-deb http://security.debian.org/ squeeze/updates main contrib non-free
-<% else %>
-deb http://security.debian.org/ lenny/updates main contrib non-free
+<% if lsbdistcodename != 'n/a' %>
+deb http://security.debian.org/ <%= lsbdistcodename %>/updates main contrib non-free
<% end %>
## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
##
-<% if nodeinfo.has_key?('squeeze') and nodeinfo['squeeze'] %>
-deb http://ftp.debian.org/debian squeeze-updates main contrib non-free
-<% else %>
+<% if lsbdistcodename == 'lenny' %>
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
+<% elsif lsbdistcodename != 'n/a' %>
+deb http://ftp.debian.org/debian <%= lsbdistcodename %>-updates main contrib non-free
<% end %>