Skip to content

Commit 07b2c49

Browse files
committed
patching Splunk SSL tool
1 parent be607bc commit 07b2c49

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash -e
2+
3+
function main()
4+
{
5+
local -r attributeFile="${1}"
6+
7+
local -r appPath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8+
local -r command="sudo chef-client -o \"recipe[splunkforwarder]\" &&
9+
sudo tail -2 '/opt/splunkforwarder/etc/auth/adobe_certs/indexer_root.crt' &&
10+
sudo tail -2 '/opt/splunkforwarder/etc/auth/adobe_certs/indexer_ssl.crt'"
11+
12+
"${appPath}/../../../../../../../../tools/run-remote-command.bash" \
13+
--attribute-file "${attributeFile}" \
14+
--command "${command}" \
15+
--machine-type 'masters'
16+
}
17+
18+
main "${@}"

0 commit comments

Comments
 (0)