From 8e4de93cad704dea7b8746b4cbf9c574d0ac29be Mon Sep 17 00:00:00 2001 From: matoval Date: Fri, 15 Nov 2024 16:07:13 -0800 Subject: [PATCH 1/3] Update docs to include interacting with Receptor via unix sockets --- docs/source/developer_guide.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/source/developer_guide.rst b/docs/source/developer_guide.rst index 7ba309606..eb5274f6e 100644 --- a/docs/source/developer_guide.rst +++ b/docs/source/developer_guide.rst @@ -11,6 +11,20 @@ Receptor is an open source project that lives at `ansible/receptor repository Date: Fri, 15 Nov 2024 16:09:03 -0800 Subject: [PATCH 2/3] Update doc --- docs/source/developer_guide.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/developer_guide.rst b/docs/source/developer_guide.rst index eb5274f6e..2872c7a5b 100644 --- a/docs/source/developer_guide.rst +++ b/docs/source/developer_guide.rst @@ -21,6 +21,7 @@ Unix Socket To send commands to unix socket without receptorctl by using socat to send data to the receptor socket directly. Example: + .. code-block:: bash echo -e '{"command": "work", "subcommand": "submit", "node": "execution", "worktype": "cat", }\n"Hi"' | socat - UNIX-CONNECT:/tmp/control.sock From 25077b7d11cb2ddc07c4672341001a282da25b99 Mon Sep 17 00:00:00 2001 From: matoval Date: Wed, 20 Nov 2024 08:14:37 -0800 Subject: [PATCH 3/3] reword description --- docs/source/developer_guide.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/developer_guide.rst b/docs/source/developer_guide.rst index 2872c7a5b..c2924d4d3 100644 --- a/docs/source/developer_guide.rst +++ b/docs/source/developer_guide.rst @@ -18,7 +18,7 @@ Debugging ^^^^^^^^^^^ Unix Socket ^^^^^^^^^^^ -To send commands to unix socket without receptorctl by using socat to send data to the receptor socket directly. +If you don't want to use receptorctl to control nodes, `socat ` can be used to interact with unix sockets directly. Example: