website: document acl policy apply

This commit is contained in:
Armon Dadgar
2017-09-14 21:31:15 -07:00
parent e17b4a31c7
commit 4e8f7d856c
4 changed files with 43 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View 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!
```

View File

@@ -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") %>>