Files allows you to SCP copy one or more files to servers via recipes at execution. To reference a file in a recipe use the following syntax:
{{ file: 5b22b6be98a618763c3a6351 }}
When a recipe that references a file is executed, Commando.io will SCP copy the file into /tmp
on each server and replace the syntax above with the actual file path in /tmp
in the recipe.
Using the example above, at execution time Commando.io will replace:
mv {{ file: 5b22b6be98a618763c3a6351 }} /etc/foo.conf
With the actual path in /tmp
in the recipe:
mv /tmp/commando_file_5b22b6be98a618763c3a6351 /etc/foo.conf
Once the execution is complete, Commando.io will attempt to purge SCP'd files in /tmp
if they exist on each server.
Once a file has been uploaded the file ID is used in the recipe.