oidentd: Initial version of oidentd module.
This commit is contained in:
parent
423b40d3da
commit
763589e731
1 changed files with 37 additions and 0 deletions
37
oidentd/manifests/init.pp
Normal file
37
oidentd/manifests/init.pp
Normal 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,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue