mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-08 00:57:21 +00:00
Update cheatsheets
This commit is contained in:
25
pyinfra
Normal file
25
pyinfra
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user