Puppet Class: splunk::platform::solaris
- Inherits:
- splunk::virtual
- Defined in:
- manifests/platform/solaris.pp
Overview
Class: splunk::platform::solaris
This class extends splunk::platform::posix with Solaris-specific resources required for deploying Splunk to a solaris host.
Parameters: none
Actions:
Declares, tags, and modifies virtual resources realized by other classes
in the splunk module.
Requires: nothing
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'manifests/platform/solaris.pp', line 15
class splunk::platform::solaris inherits splunk::virtual {
include ::archive
include ::splunk::params
include ::splunk::platform::posix
$path = $archive::path
$subdir = $splunk::params::staging_subdir
$responsefile = "${path}/${subdir}/response.txt"
$adminfile = '/var/sadm/install/admin/splunk-noask'
file { 'splunk_adminfile':
ensure => file,
path => $adminfile,
owner => 'root',
group => 'root',
source => 'puppet:///modules/splunk/splunk-noask',
}
file { 'splunk_pkg_response_file':
ensure => file,
owner => 'root',
group => 'root',
path => $responsefile,
content => "BASEDIR=/opt\n",
}
# Collect any Splunk packages and give them an admin and response file.
Package <| tag == 'splunk_forwarder' or tag == 'splunk_server' |> {
adminfile => $adminfile,
responsefile => $responsefile,
}
# This is a virtual resource declared in the splunk::virtual class. We need
# to override it since the default service provider on Solaris is not init.
Service['splunk'] {
provider => 'init',
}
}
|