summaryrefslogtreecommitdiff
path: root/etc/perf.yml
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-05-26 07:28:49 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-27 15:09:25 +0000
commit7cb2c2e01700b363124748ba247a7730d7e24bfb (patch)
treec79d3099e6ae67041e5c9f08d675f3895966f52f /etc/perf.yml
parentdde5cb0c7ae1c70e7c7398f7b821598294d03138 (diff)
downloadmongo-7cb2c2e01700b363124748ba247a7730d7e24bfb.tar.gz
SERVER-48344 generate key file for performance test replica set configuration
(cherry picked from commit 97c1ba0a6f3c2215801f8b2363e5b4dbfbfb1ef1)
Diffstat (limited to 'etc/perf.yml')
-rw-r--r--etc/perf.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/perf.yml b/etc/perf.yml
index 46f8b797093..fb5d981aed8 100644
--- a/etc/perf.yml
+++ b/etc/perf.yml
@@ -95,7 +95,11 @@ functions:
set -e
set -o verbose
mkdir -p ./dbdata
- ${mongod_exec_wrapper} ./bin/mongod --dbpath ./dbdata ${mongod_flags} --logpath "${workdir}/mongod.log"
+ echo -e "my secret key" > "${workdir}/key"
+ chmod 600 "${workdir}/key"
+ # We provide the key file for mongod here, rather than in mongod_flags next to the --auth
+ # option, because the path to key file requires expanding the {workdir} variable.
+ ${mongod_exec_wrapper} ./bin/mongod --dbpath ./dbdata ${mongod_flags} --keyFile "${workdir}/key" --logpath "${workdir}/mongod.log"
- command: shell.exec
params:
working_dir: src