github.com/zhizhiboom/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/website/source/docs/configuration/plugin.html.md (about) 1 --- 2 layout: "docs" 3 page_title: "plugin Stanza - Agent Configuration" 4 sidebar_current: "docs-configuration-plugin" 5 description: |- 6 The "plugin" stanza is used to configure a Nomad plugin. 7 --- 8 9 # `plugin` Stanza 10 11 <table class="table table-bordered table-striped"> 12 <tr> 13 <th width="120">Placement</th> 14 <td> 15 <code>**plugin**</code> 16 </td> 17 </tr> 18 </table> 19 20 The `plugin` stanza is used to configure an individual plugin. 21 22 ```hcl 23 plugin "example-plugin" { 24 args = ["-my-flag"] 25 config { 26 foo = "bar" 27 bam { 28 baz = 1 29 } 30 } 31 } 32 ``` 33 34 The name of the plugin is the plugin's executable name relative to to the 35 [plugin_dir](/docs/configuration/index.html#plugin_dir). If the plugin has a 36 suffix, such as `.exe`, this should be omitted. 37 38 ## `plugin` Parameters 39 40 - `args` `(array<string>: [])` - Specifies a set of arguments to pass to the 41 plugin binary when it is executed. 42 43 - `config` `(hcl/json: nil)` - Specifies configuration values for the plugin 44 either as HCL or JSON. The accepted values are plugin specific. Please refer 45 to the individual plugin's documentation.