Puppet Class: fancontrol

Defined in:
manifests/init.pp

Overview

Parameters:

  • fancontrol_config (String)
  • modules (Array[String]) (defaults to: ['coretemp', 'jc42', 'w83627ehf', 'w83795'])


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/init.pp', line 12

class fancontrol (
  String $fancontrol_config,
  Array[String] $modules = ['coretemp', 'jc42', 'w83627ehf', 'w83795']
) {
  package { 'lm_sensors': }

  -> file { '/etc/conf.d/lm_sensors':
    ensure  => file,
    content => template('fancontrol/lm_sensors.conf.erb')
  }

  -> service { 'lm_sensors':
    ensure => running,
    enable => true
  }

  -> file { '/etc/fancontrol':
    ensure  => file,
    content => $fancontrol_config
  }
}