830 B
830 B
Makeshift SMD Plugin
This makeshift plugin fetchs data from SMD and stores it in the storage.KVStore passed to the Run() function. This plugin can be used in conjunction with other plugins like the jinja2 plugin to render files using the data stored.
Here's a simple example.
makeshift download -p /etc/hosts --plugins smd,jinja2 -xr
This example downloads all the files in the /etc/hosts directory and renders the Jinja 2 templates with the data fetched from SMD. Then, the -x and -r flags tells the CLI to extract and remove the archive respectively.
Since plugins are ran in the order specified with the CLI, be sure to always call the smd plugin before reading from the storage.KVStore like in the example above or else the fetched data will not exist!