mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
website: document acl policy apply
This commit is contained in:
@@ -20,6 +20,8 @@ Run `nomad acl <subcommand> -h` for help on that subcommand. The following
|
||||
subcommands are available:
|
||||
|
||||
* [`acl bootstrap`][bootstrap] - Bootstrap the initial ACL token
|
||||
* [`acl policy apply`][policyapply] - Create or update ACL policies
|
||||
|
||||
[bootstrap]: /docs/commands/acl/bootstrap.html
|
||||
[policyapply]: /docs/commands/acl/policy-apply.html
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ layout: "docs"
|
||||
page_title: "Commands: acl bootstrap"
|
||||
sidebar_current: "docs-commands-acl-bootstrap"
|
||||
description: >
|
||||
The deployment list command is used to list deployments.
|
||||
The bootstrap command is used to create the initial ACL token.
|
||||
---
|
||||
|
||||
# Command: acl bootstrap
|
||||
|
||||
37
website/source/docs/commands/acl/policy-apply.html.md.erb
Normal file
37
website/source/docs/commands/acl/policy-apply.html.md.erb
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
layout: "docs"
|
||||
page_title: "Commands: acl policy apply"
|
||||
sidebar_current: "docs-commands-acl-policy-apply"
|
||||
description: >
|
||||
The policy apply command is used to create or update ACL policies.
|
||||
---
|
||||
|
||||
# Command: acl policy apply
|
||||
|
||||
The `acl policy apply` command is used to create or update ACL policies.
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
nomad acl policy apply [options] <name> <path>
|
||||
```
|
||||
|
||||
The `acl policy apply` command requires two arguments, the policy name and path to file.
|
||||
The policy can be read from stdin by setting the path to "-".
|
||||
|
||||
## General Options
|
||||
|
||||
<%= partial "docs/commands/_general_options" %>
|
||||
|
||||
## Apply Options
|
||||
|
||||
* `-description`: Sets the human readable description for the ACL policy.
|
||||
|
||||
## Examples
|
||||
|
||||
Create a new acl policy
|
||||
|
||||
```
|
||||
$ nomad acl policy apply my-policy my-policy.json
|
||||
Successfully wrote 'my-policy' ACL policy!
|
||||
```
|
||||
@@ -173,6 +173,9 @@
|
||||
<li<%= sidebar_current("docs-commands-acl-bootstrap") %>>
|
||||
<a href="/docs/commands/acl/bootstrap.html">acl bootstrap</a>
|
||||
</li>
|
||||
<li<%= sidebar_current("docs-commands-acl-policy-apply") %>>
|
||||
<a href="/docs/commands/acl/policy-apply.html">acl policy apply</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li<%= sidebar_current("docs-commands-_agent") %>>
|
||||
|
||||
Reference in New Issue
Block a user