mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
* replace outdated tutorial links * update more tutorial links * Add CE/ENT or ENT to left nav * remove ce/ent labels * revert enterprise features
53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: sentinel Block in Agent Configuration
|
|
description: >-
|
|
Configure Sentinel policy engine behavior in the "sentinel" block of a Nomad agent configuration. Configure the path to the plugin that Nomad uses to import Sentinel policies and specify arguments to pass to that plugin on startup.
|
|
---
|
|
|
|
# `sentinel` Block in Agent Configuration
|
|
|
|
<Placement groups={['sentinel']} />
|
|
|
|
This page provides reference information for configuring the Sentinel policy
|
|
engine in the `sentinel` block of a Nomad agent configuration. Configure the
|
|
path to the plugin that Nomad uses to import Sentinel policies and specify
|
|
arguments to pass to that plugin on startup.
|
|
|
|
<EnterpriseAlert/>
|
|
|
|
```hcl
|
|
sentinel {
|
|
import "custom-plugin" {
|
|
path = "/usr/bin/sentinel-custom-plugin"
|
|
args = ["-verbose", "foo"]
|
|
}
|
|
}
|
|
```
|
|
|
|
## `sentinel` Parameters
|
|
|
|
- `import` <code>([Import](#import-parameters): nil)</code> -
|
|
Specifies a plugin that should be made available for importing by Sentinel policies.
|
|
The name of the import matches the name that can be imported.
|
|
|
|
### `import` Parameters
|
|
|
|
- `path` `(string: "")` - Specifies the path to the import plugin. Must be executable by Nomad.
|
|
|
|
- `args` `(array<string>: [])` - Specifies arguments to pass to the plugin when starting it.
|
|
|
|
## Resources
|
|
|
|
Refer to these resources for details on using Sentinel policies with
|
|
Nomad:
|
|
|
|
- [Governance and policy on
|
|
Nomad](/nomad/docs/govern)
|
|
- [Sentinel policies](/nomad/docs/govern/sentinel)
|
|
- [Sentinel policy
|
|
reference](https://developer.hashicorp.com/nomad/docs/reference/sentinel-policy)
|
|
|
|
|
|
|