From: Yuval Lifshitz Date: Wed, 10 May 2023 09:43:45 +0000 (+0300) Subject: doc/rgw/lua: add info uploading a script in cephadm deployment X-Git-Tag: v17.2.7~268^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F52299%2Fhead;p=ceph.git doc/rgw/lua: add info uploading a script in cephadm deployment Signed-off-by: Yuval Lifshitz (cherry picked from commit 5cec4f719581e93760c22419e701c563a8688de9) --- diff --git a/doc/radosgw/lua-scripting.rst b/doc/radosgw/lua-scripting.rst index 33b5e7e938c..9e72428ad21 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: