Skip to content

Commit 13ae8fa

Browse files
committed
scoped key steps
1 parent 2a02f3f commit 13ae8fa

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

docs/admin/provisioners.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,36 +43,38 @@ The provisioner daemon must authenticate with your Coder deployment.
4343
We recommend creating finely-scoped keys for provisioners. Keys are scoped to an
4444
organization, and optionally to a specific set of tags.
4545

46-
To create a key for an organization that will match untagged jobs:
46+
1. Use `coder provisioner` to create the key:
4747

48-
```sh
49-
coder provisioner keys create my-key \
50-
--org default
48+
- To create a key for an organization that will match untagged jobs:
5149

52-
Successfully created provisioner key my-key! Save this authentication token, it will not be shown again.
50+
```sh
51+
coder provisioner keys create my-key \
52+
--org default
5353

54-
<key omitted>
55-
```
54+
Successfully created provisioner key my-key! Save this authentication token, it will not be shown again.
5655

57-
To restrict the provisioner to jobs with specific tags:
56+
<key omitted>
57+
```
5858

59-
```sh
60-
coder provisioner keys create kubernetes-key \
61-
--org default \
62-
--tag environment=kubernetes
59+
- To restrict the provisioner to jobs with specific tags:
6360

64-
Successfully created provisioner key kubernetes-key! Save this authentication token, it will not be shown again.
61+
```sh
62+
coder provisioner keys create kubernetes-key \
63+
--org default \
64+
--tag environment=kubernetes
6565
66-
<key omitted>
67-
```
66+
Successfully created provisioner key kubernetes-key! Save this authentication token, it will not be shown again.
6867
69-
You can then start the provisioner with the specified key:
68+
<key omitted>
69+
```
7070

71-
```sh
72-
export CODER_URL=https://<your-coder-url>
73-
export CODER_PROVISIONER_DAEMON_KEY=<key>
74-
coder provisioner start
75-
```
71+
1. Start the provisioner with the specified key:
72+
73+
```sh
74+
export CODER_URL=https://<your-coder-url>
75+
export CODER_PROVISIONER_DAEMON_KEY=<key>
76+
coder provisioner start
77+
```
7678

7779
Keep reading to see instructions for running provisioners on
7880
Kubernetes/Docker/etc.

0 commit comments

Comments
 (0)