Here is my current (working) manifest! (v.2)
class splunk::forwarder {
$mod = "splunk"
service {
"splunk":
ensure => running,
enable => true,
hasrestart => true,
hasstatus => false,
pattern => "splunkd",
subscribe => [
Package["splunk"],
File["/opt/splunk/etc/apps/unix"],
File["/opt/splunk/etc/apps/SplunkLightForwarder"],
File["/etc/init.d/splunk"]
]
}
package {
"splunk":
ensure => installed,
}
file {
"/opt/splunk/etc/splunk.license":
mode => "644",
owner => "splunk",
group => "splunk",
backup => true,
ensure => present,
require => Package["splunk"],
source => "puppet:///modules/$mod/noarch/opt/splunk/etc/splunk-forwarder.license";
"/etc/init.d/splunk":
mode => "700",
owner => "root",
group => "root",
ensure => present,
require => Package["splunk"],
source => "puppet:///modules/$mod/noarch/etc/init.d/splunk";
"/opt/splunk/etc/passwd":
mode => "600",
owner => "root",
group => "root",
backup => true,
ensure => present,
require => Package["splunk"],
source => "puppet:///modules/$mod/noarch/opt/splunk/etc/passwd";
"/opt/splunk/etc/auth":
owner => "splunk",
group => "splunk",
mode => "600",
recurse => true,
purge => false,
require => Package["splunk"],
source => "puppet:///modules/$mod/noarch/opt/splunk/etc/auth";
"/opt/splunk/etc/apps/unix":
owner => "splunk",
group => "splunk",
recurse => true,
purge => false,
require => Package["splunk"],
source => "puppet:///modules/$mod/noarch/opt/splunk/etc/apps/unix";
"/opt/splunk/etc/apps/SplunkLightForwarder":
owner => "splunk",
group => "splunk",
recurse => true,
purge => false,
require => Package["splunk"],
source => "puppet:///modules/$mod/noarch/opt/splunk/etc/apps/SplunkLightForwarder",
}
}
... View more