From 4a880ad141c8deefb41549e5e79c868303e1c296 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 23 Sep 2016 16:29:26 -0300 Subject: Coding style for utilities --- manifests/utils/laptop/debian.pp | 53 +++++++++++++++++++++++++----- manifests/utils/laptop/thinkpad/battery.pp | 8 +++-- 2 files changed, 50 insertions(+), 11 deletions(-) (limited to 'manifests/utils/laptop') diff --git a/manifests/utils/laptop/debian.pp b/manifests/utils/laptop/debian.pp index 5f5c0c7..d45ec4c 100644 --- a/manifests/utils/laptop/debian.pp +++ b/manifests/utils/laptop/debian.pp @@ -2,15 +2,50 @@ class nodo::utils::laptop::debian { include nodo::utils::storage::layer - package { [ 'cpufrequtils', 'module-assistant', 'wireless-tools', - 'wpasupplicant', 'ekiga', 'mumble', - 'arp-scan', 'usb-modeswitch', - 'iw', 'wvdial', 'wavemon', - 'btscanner', 'laptop-mode-tools', 'acpi-support', - 'tftp', 'sharutils', 'wireshark', - 'weplab', 'wpagui', - 'gnokii', 'sslstrip', 'uswsusp', - 'tcpdump', 'tshark' ]: + # Power management + package { [ + 'cpufrequtils', + 'acpi-support', + 'laptop-mode-tools', + ]: ensure => installed, } + + # Wireless + package { [ + 'wireless-tools', + 'wpasupplicant', + ]: + ensure => installed, + } + + # Network layer + #package { [ + # 'arp-scan', + # 'wavemon', + # 'wvdial', + # 'iw', + # 'btscanner', + # 'weplab', + # 'wireshark', + # 'tftp', + # 'tcpdump', + # 'tshark', + # 'wpagui', + # 'sslstrip', + #]: + # ensure => installed, + #} + + # Misc + #package { [ + # 'module-assistant', + # 'ekiga', + # 'mumble', + # 'usb-modeswitch', + # 'gnokii', + # 'sharutils', + #]: + # ensure => installed, + #} } diff --git a/manifests/utils/laptop/thinkpad/battery.pp b/manifests/utils/laptop/thinkpad/battery.pp index 9073f04..c8fdb52 100644 --- a/manifests/utils/laptop/thinkpad/battery.pp +++ b/manifests/utils/laptop/thinkpad/battery.pp @@ -2,11 +2,15 @@ class nodo::utils::laptop::thinkpad::battery( $implementation = 'acpi-call', ) { - package { 'tlp': + package { [ + 'tlp', + ]: ensure => present, } - package { "${implementation}-dkms": + package { [ + "${implementation}-dkms", + ]: ensure => present, } } -- cgit v1.2.3