pyinfra: add page (#8238)

pull/1/head
CTome 2022-07-22 11:57:13 +01:00 committed by GitHub
parent 7600b42b82
commit 2ff80e00a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
pages/common/pyinfra.md Normal file
View File

@ -0,0 +1,20 @@
# pyinfra
> Automates infrastructure at a large scale.
> More information: <https://docs.pyinfra.com>.
- 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}}`