aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystem/apt.pp3
-rw-r--r--manifests/subsystem/sensors.pp36
-rw-r--r--manifests/utils.pp7
-rw-r--r--manifests/utils/office/console.pp4
-rw-r--r--manifests/utils/office/gui.pp1
5 files changed, 33 insertions, 18 deletions
diff --git a/manifests/subsystem/apt.pp b/manifests/subsystem/apt.pp
index 28db591..d2d531d 100644
--- a/manifests/subsystem/apt.pp
+++ b/manifests/subsystem/apt.pp
@@ -14,8 +14,9 @@ class nodo::subsystem::apt(
default => 'enabled',
}
) {
+ # This one is no longer necessary
package { 'apt-transport-https':
- ensure => installed,
+ ensure => absent,
}
# See https://www.cyberciti.biz/faq/howto-use-apt-get-with-ipv6-or-ipv4-transport-on-ubuntu-debian/
diff --git a/manifests/subsystem/sensors.pp b/manifests/subsystem/sensors.pp
index 104a0f5..8a19831 100644
--- a/manifests/subsystem/sensors.pp
+++ b/manifests/subsystem/sensors.pp
@@ -3,9 +3,9 @@ class nodo::subsystem::sensors {
# SMART monitoring
#
- $smartmontools = lookup('nodo::sensors::smartmontools', undef, undef, true)
+ $smartmontools = lookup('nodo::sensors::smartmontools', undef, undef, 'present')
- if $smartmontools == true {
+ if $smartmontools == 'present' {
class { 'smartmontools': }
}
@@ -13,7 +13,7 @@ class nodo::subsystem::sensors {
# LM Sensors
#
- $lm_sensors = lookup('nodo::sensors::lm_sensors', undef, undef, true)
+ $lm_sensors = lookup('nodo::sensors::lm_sensors', undef, undef, 'present')
package { [
'lm-sensors',
@@ -22,6 +22,22 @@ class nodo::subsystem::sensors {
}
#
+ # drivetemp
+ #
+ # Just load this driver and lm-sensors will detect sensors automatically.
+ #
+ # https://www.baeldung.com/linux/hdd-ssd-temperature
+ # https://askubuntu.com/questions/1426482/tool-to-monitor-hdd-temperature-in-ubuntu-server-22-04
+ # https://wiki.archlinux.org/title/Lm_sensors#S.M.A.R.T._drive_temperature
+ # https://github.com/philipl/drivetemp
+
+ $drivetemp = lookup('nodo::sensors::drivetemp', undef, undef, 'present')
+
+ nodo::subsystem::modprobe::module { 'drivetemp':
+ ensure => $drivetemp,
+ }
+
+ #
# hddtemp
#
@@ -37,18 +53,4 @@ class nodo::subsystem::sensors {
default => absent,
}
}
-
- #
- # drivetemp
- #
- # https://www.baeldung.com/linux/hdd-ssd-temperature
- # https://askubuntu.com/questions/1426482/tool-to-monitor-hdd-temperature-in-ubuntu-server-22-04
- # https://wiki.archlinux.org/title/Lm_sensors#S.M.A.R.T._drive_temperature
- # https://github.com/philipl/drivetemp
-
- $drivetemp = lookup('nodo::sensors::drivetemp', undef, undef, true)
-
- nodo::subsystem::modprobe::module { 'drivetemp':
- ensure => $drivetemp,
- }
}
diff --git a/manifests/utils.pp b/manifests/utils.pp
index bd8f692..5847438 100644
--- a/manifests/utils.pp
+++ b/manifests/utils.pp
@@ -1,5 +1,12 @@
# Common utilities
class nodo::utils inherits nodo::utils::base {
+ # Ensure every node are ready for offline operation
+ package { [
+ 'apt-offline',
+ ]:
+ ensure => present,
+ }
+
package { [
'pv',
'gcp',
diff --git a/manifests/utils/office/console.pp b/manifests/utils/office/console.pp
index b35247e..dd45519 100644
--- a/manifests/utils/office/console.pp
+++ b/manifests/utils/office/console.pp
@@ -17,6 +17,10 @@ class nodo::utils::office::console (
#'worklog',
#'lolcat',
#'aewan',
+
+ # Needed by finder
+ # https://git.fluxo.info/finder
+ 'python3-prompt-toolkit',
]:
ensure => $ensure,
}
diff --git a/manifests/utils/office/gui.pp b/manifests/utils/office/gui.pp
index 6cde1aa..5f80288 100644
--- a/manifests/utils/office/gui.pp
+++ b/manifests/utils/office/gui.pp
@@ -4,6 +4,7 @@ class nodo::utils::office::gui (
package { [
'libreoffice',
'libreoffice-gtk3',
+ 'pdfarranger',
#'pdftk',
]:
ensure => $ensure,