diff --git a/manifests/params.pp b/manifests/params.pp index 7f12acc5..99e0d3cb 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -75,6 +75,7 @@ $server = 'splunk', $forwarder_installdir = undef, $server_installdir = undef, + $splunk_user = undef, ) { # Based on the small number of inputs above, we can construct sane defaults @@ -90,9 +91,11 @@ if $::osfamily == 'Windows' { $forwarder_dir = pick($forwarder_installdir, 'C:\\Program Files\\SplunkUniversalForwarder') $server_dir = pick($server_installdir, 'C:/Program Files/Splunk') + $splunk_user = pick($splunk_user, 'Administrator') } else { $forwarder_dir = pick($forwarder_installdir, '/opt/splunkforwarder') $server_dir = pick($server_installdir, '/opt/splunk') + $splunk_user = pick($splunk_user, 'root') } # Settings common to a kernel @@ -238,7 +241,6 @@ $create_password = true $forwarder_pkg_ensure = 'installed' - $splunk_user = 'root' # A meta resource so providers know where splunk is installed: splunk_config { 'splunk':