Skip to content

Commit

Permalink
Merge pull request #107 from ralfbosz/windowsuser
Browse files Browse the repository at this point in the history
This commit sets the splunk_user for Windows to 'administrator'
  • Loading branch information
bastelfreak authored Apr 19, 2017
2 parents 72acc62 + 23a1519 commit c59a103
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@
if $::osfamily == 'Windows' {
$forwarder_dir = pick($forwarder_installdir, 'C:\\Program Files\\SplunkUniversalForwarder')
$server_dir = pick($server_installdir, 'C:/Program Files/Splunk')
$splunk_user = 'Administrator'
} else {
$forwarder_dir = pick($forwarder_installdir, '/opt/splunkforwarder')
$server_dir = pick($server_installdir, '/opt/splunk')
$splunk_user = 'root'
}

# Settings common to a kernel
Expand Down Expand Up @@ -238,7 +240,6 @@
$create_password = true

$forwarder_pkg_ensure = 'installed'
$splunk_user = 'root'

# A meta resource so providers know where splunk is installed:
splunk_config { 'splunk':
Expand Down

0 comments on commit c59a103

Please sign in to comment.