diff --git a/oidentd/manifests/init.pp b/oidentd/manifests/init.pp new file mode 100644 index 0000000..9ab71f6 --- /dev/null +++ b/oidentd/manifests/init.pp @@ -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, + } + +}