-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
245 additions
and
153 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
docs/source/release_process.rst → docs/source/contributing.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. _installing: | ||
|
||
******************* | ||
Installation guide | ||
******************* | ||
|
||
Download and extract precompiled binary for your OS and platform from `the releases page on GitHub <https://github.com/ansible/receptor/releases>`_ | ||
|
||
Alternatively, you can compile from source code (Golang 1.19+ required) | ||
|
||
.. code:: | ||
make receptor | ||
Test the installation with | ||
|
||
.. code:: | ||
receptor --help | ||
receptor --version | ||
The preferred way to interact with receptor nodes is to use the receptorctl command line tool | ||
|
||
.. code:: | ||
pip install receptorctl | ||
receptorctl will be used in various places throughout this documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
Using Receptor | ||
=============== | ||
|
||
. contents:: | ||
:local: | ||
|
||
Configuring Receptor with the CLI | ||
----------------------------------- | ||
|
||
Run the following command in a terminal to start a node called `foo`, | ||
|
||
.. code:: | ||
receptor --node id=foo --local-only --log-level Debug | ||
The log shows the receptor node started successfully | ||
|
||
``INFO 2021/07/22 22:40:36 Initialization complete`` | ||
|
||
Supported log levels, in increasing verbosity, are Error, Warning, Info and Debug. | ||
|
||
Note: stop the receptor process with ``ctrl-c`` | ||
|
||
Configuring Receptor with a config file | ||
---------------------------------------- | ||
|
||
Receptor can be configured on the command-line, exemplified above, or via a yaml config file. All actions and parameters shown in ``receptor --help`` can be written to a config file. | ||
|
||
.. code-block:: yaml | ||
--- | ||
- node: | ||
id: foo | ||
- local-only | ||
- log-level: | ||
level: Debug | ||
Start receptor using the config file | ||
|
||
.. code:: | ||
receptor --config foo.yml | ||
Changing the configuration file does take effect until the receptor process is restarted. | ||
|
||
Use Receptor through a container image | ||
--------------------------------------- | ||
|
||
.. code:: | ||
podman pull quay.io/ansible/receptor | ||
Start a container, which automatically runs receptor with the default config located at ``/etc/receptor/receptor.conf`` | ||
|
||
.. code:: | ||
podman run -it --rm --name receptor quay.io/ansible/receptor | ||
In another terminal, issue a basic "status" command to the running receptor process | ||
|
||
.. code:: | ||
$ podman exec receptor receptorctl status | ||
Node ID: d9b5a8e3c156 | ||
Version: 1.0.0 | ||
System CPU Count: 8 | ||
System Memory MiB: 15865 | ||
Node Service Type Last Seen Tags Work Types | ||
d9b5a8e3c156 control Stream 2021-08-04 19:26:14 - - | ||
Note: the config file does not specify a node ID, so the hostname (on the container) is chosen as the node ID. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.