]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rgw/lua: add info uploading a script in cephadm deployment 52299/head
authorYuval Lifshitz <yuvalif@yahoo.com>
Wed, 10 May 2023 09:43:45 +0000 (12:43 +0300)
committerZac Dover <zac.dover@proton.me>
Tue, 4 Jul 2023 21:45:08 +0000 (07:45 +1000)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
(cherry picked from commit 5cec4f719581e93760c22419e701c563a8688de9)

doc/radosgw/lua-scripting.rst

index 33b5e7e938c0672e100dc7eb181ca89f538600f0..9e72428ad21f41200f45fdad5d0d87f179154e43 100644 (file)
@@ -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: