From b0c78748c05faed9c6032f490169741ad7fd6cf7 Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Wed, 10 May 2023 12:43:45 +0300 Subject: [PATCH] doc/rgw/lua: add info uploading a script in cephadm deployment Signed-off-by: Yuval Lifshitz (cherry picked from commit 5cec4f719581e93760c22419e701c563a8688de9) --- doc/radosgw/lua-scripting.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/radosgw/lua-scripting.rst b/doc/radosgw/lua-scripting.rst index 33b5e7e938c06..9e72428ad21f4 100644 --- a/doc/radosgw/lua-scripting.rst +++ b/doc/radosgw/lua-scripting.rst @@ -30,7 +30,15 @@ To upload a script: :: - # radosgw-admin script put --infile={lua-file} --context={preRequest|postRequest} [--tenant={tenant-name}] + # radosgw-admin script put --infile={lua-file-path} --context={prerequest|postrequest|background|getdata|putdata} [--tenant={tenant-name}] + + +* When uploading a script with the ``background`` context, a tenant name should not be specified. +* When uploading a script into a cluster deployed with cephadm, use the following command: + +:: + + # cephadm shell radosgw-admin script put --infile=/rootfs/{lua-file-path} --context={prerequest|postrequest|background|getdata|putdata} [--tenant={tenant-name}] To print the content of the script to standard output: -- 2.39.5