chore: added individual READMEs to default plugins
This commit is contained in:
parent
0c87336d58
commit
fb6f6933a2
2 changed files with 47 additions and 0 deletions
13
pkg/plugins/smd/README.md
Normal file
13
pkg/plugins/smd/README.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Makeshift SMD Plugin
|
||||
|
||||
This `makeshift` plugin fetchs data from [SMD](https://github.com/OpenCHAMI/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.
|
||||
|
||||
```bash
|
||||
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!
|
||||
Loading…
Add table
Add a link
Reference in a new issue