From 2ff80e00a5a81b16aed0d822180a60835f65a696 Mon Sep 17 00:00:00 2001 From: CTome <64846840+CrimsonTome@users.noreply.github.com> Date: Fri, 22 Jul 2022 11:57:13 +0100 Subject: [PATCH] pyinfra: add page (#8238) --- pages/common/pyinfra.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/pyinfra.md diff --git a/pages/common/pyinfra.md b/pages/common/pyinfra.md new file mode 100644 index 000000000..8b3a71641 --- /dev/null +++ b/pages/common/pyinfra.md @@ -0,0 +1,20 @@ +# pyinfra + +> Automates infrastructure at a large scale. +> More information: . + +- Execute a command over SSH: + +`pyinfra {{target_ip_address}} exec -- {{command_name_and_arguments}}` + +- Execute contents of a deploy file on a list of targets: + +`pyinfra {{path/to/target_list.py}} {{path/to/deploy.py}}` + +- Execute commands on locally: + +`pyinfra @local {{path/to/deploy.py}}` + +- Execute commands over Docker: + +`pyinfra @docker/{{container}} {{path/to/deploy.py}}`