oidentd: Initial version of oidentd module.

This commit is contained in:
Timo Makinen 2014-01-08 12:29:52 +02:00
parent 423b40d3da
commit 763589e731

37
oidentd/manifests/init.pp Normal file
View file

@ -0,0 +1,37 @@
# Install oidentd service
#
# === Parameters:
#
# $config:
# Source to oidentd.conf. Default is to install empty config.
#
class oidentd($config="") {
package { "oidentd":
ensure => installed,
}
file { "/etc/oidentd.conf":
ensure => present,
source => $config ? {
"" => undef,
default => $config,
},
content => $config ? {
"" => "",
default => undef,
},
mode => "0644",
owner => "root",
group => "root",
require => Package["oidentd"],
notify => Service["oidentd"],
}
service { "oidentd":
ensure => running,
enable => true,
}
}