# Common utilities for laptop class utils::laptop { case $operatingsystem { debian: { include utils::laptop::debian } default: { } } } # Common utilities for debian laptops class utils::laptop::debian { package { [ 'cpufrequtils', 'module-assistant', 'wireless-tools', 'wpasupplicant', 'ekiga', 'gnome', 'revelation', 'wicd', 'wicd-curses', 'iw', 'wvdial', 'wavemon', 'btscanner', 'laptop-mode-tools', 'acpi-support', 'kismet', 'sharutils', 'wireshark', 'macchanger', 'weplab', 'wpagui', 'gnokii', 'mumble', 'arp-scan' ]: ensure => installed, } # Lenny specific packages package { [ 'madwifi-source', 'madwifi-tools', 'bluez-gnome' ]: ensure => $lsbdistcodename ? { 'lenny' => installed, default => absent, } } # Hibernation on lenny if $lsbdistcodename == 'lenny' { package { 'uswsusp': ensure => $hibernate ? { false => absent, default => present, }, } } }