From 8420ff0f39ca11589ae10e556d15c6f0f8b9aee6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 Jun 2018 09:54:02 -0300 Subject: Adds nodo::subsystem::kernel::headers --- manifests/subsystem/kernel/headers.pp | 11 +++++++++++ manifests/subsystem/power/tlp.pp | 1 + 2 files changed, 12 insertions(+) create mode 100644 manifests/subsystem/kernel/headers.pp (limited to 'manifests') diff --git a/manifests/subsystem/kernel/headers.pp b/manifests/subsystem/kernel/headers.pp new file mode 100644 index 0000000..c85c7ed --- /dev/null +++ b/manifests/subsystem/kernel/headers.pp @@ -0,0 +1,11 @@ +class nodo::subsystem::kernel::headers { + $suffix = $::architecture ? { + 'amd64' => 'amd64', + 'i386' => '686-pae', + default => 'generic', + } + + package { "linux-headers-${suffix}": + ensure => installed, + } +} diff --git a/manifests/subsystem/power/tlp.pp b/manifests/subsystem/power/tlp.pp index 1c07d1c..4a1333b 100644 --- a/manifests/subsystem/power/tlp.pp +++ b/manifests/subsystem/power/tlp.pp @@ -1,5 +1,6 @@ class nodo::subsystem::power::tlp { include nodo::utils::laptop::tlp + include nodo::subsystem::kernel::headers file { '/etc/default/tlp': ensure => present, -- cgit v1.2.3