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: v18.1.3~56^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F52298%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 9f42f20c18f..c85f72a6ed9 100644 --- a/doc/radosgw/lua-scripting.rst +++ b/doc/radosgw/lua-scripting.rst @@ -40,10 +40,15 @@ To upload a script: :: - # radosgw-admin script put --infile={lua-file} --context={prerequest|postrequest|background|getdata|putdata} [--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 may not be specified. +* 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: