From adf08025983ea77969c170bf7eabcaaf8daf5e09 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 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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: -- 2.39.5