Skip to content

Commit

Permalink
Docs: add transition text between role definition and tctl create (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandredinis authored May 27, 2024
1 parent 3829411 commit dd33d8d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/pages/access-controls/device-trust/device-management.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ management.
</Admonition>

Following is an example of a role that grants permissions for the `device` resource is necessary to manage
the inventory. Save the yaml below as `device-admin.yaml` and create it in your
cluster:
the inventory. Save the yaml below as `device-admin.yaml`:

```yaml
version: v7
Expand All @@ -260,6 +259,8 @@ spec:
- enroll
```
Create the role:
```code
$ tctl create -f device-admin.yaml
role 'device-admin' has been created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ spec:

```

Update the role:

```code
$ tctl create -f device-enforcement.yaml
```
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/access-controls/guides/impersonation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ spec:
'*': '*'
```

Create the resources:

```code
$ tctl create -f security-impersonator.yaml
$ tctl users update alice --set-roles=security-impersonator,access
Expand Down
4 changes: 3 additions & 1 deletion docs/pages/access-controls/guides/locking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ a lock:
ERROR: access denied to perform action "create" on "lock"
```

Create a role `locksmith`:
Define a role `locksmith`:

```yaml
kind: role
Expand All @@ -111,6 +111,8 @@ spec:
verbs: [list, create, read, update, delete]
```
Create the role:
```code
$ tctl create -f locksmith.yaml
# role 'locksmith' has been created
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/access-controls/sso/one-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ spec:
**Notice:** Replace `ubuntu` with linux login available on your servers!

Create the role:

```code
$ tctl create -f dev.yaml
```
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/includes/server-access/custom-installer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
verbs: [list, create, read, update]
```
Create the role:
```code
$ tctl create -f installer-manager.yaml
# role 'installer-manager' has been created
Expand Down

0 comments on commit dd33d8d

Please sign in to comment.