Puppet Class: splunk::deploymentclient
- Defined in:
- manifests/deploymentclient.pp
Overview
splunk::deploymentclient Configure an agent as a deployment client.
Parameters
- path
-
Path to outputs.conf file to be managed
- targeturi
-
String used to define a Target Deployment Server. targeturi is a Required Paramater if your going to use this class. targeturi => ‘deploymentserver.splunk.mycompany.com:8089’
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'manifests/deploymentclient.pp', line 13
class splunk::deploymentclient (
$path = "${::splunk::splunkhome}/etc/system/local",
$targeturi = undef
) {
Class{ require => Class['splunk::install'] }
# Validate string
if !$targeturi {
fail('"targeturi" has not been set, should be in the form of "deploymentserver.splunk.mycompany.com:8089"')
}
file { "${path}/deploymentclient.conf":
ensure => file,
owner => 'splunk',
group => 'splunk',
mode => '0644',
content => template('splunk/opt/splunk/etc/system/local/deploymentclient.conf.erb'),
require => Class['splunk::install'],
notify => Class['splunk::service']
}
}
|