Skip to content

Commit ec2f1c9

Browse files
committed
Merge pull request example42#31 from hajee/fix_exec
exec needs full path to wget
2 parents f5692b3 + 107c3e0 commit ec2f1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/init.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
}
359359

360360
exec { 'splunk_get_package':
361-
command => "wget \'${splunk::install_source}' -O ${splunk::basedir}/${package_provider}/${package_filename}",
361+
command => "/usr/bin/wget \'${splunk::install_source}' -O ${splunk::basedir}/${package_provider}/${package_filename}",
362362
creates => "${splunk::basedir}/${package_provider}/${package_filename}",
363363
before => Package['splunk'],
364364
}
@@ -397,7 +397,7 @@
397397
exec { 'splunk_first_time_run':
398398
command => "${splunk::basedir}/bin/splunk --accept-license enable boot-start --answer-yes --no-prompt",
399399
require => Package['splunk'],
400-
onlyif => "test -f ${splunk::basedir}/ftr",
400+
onlyif => "/usr/bin/test -f ${splunk::basedir}/ftr",
401401
}
402402

403403
# Setting of forward_server for forwarders

0 commit comments

Comments
 (0)