Skip to content

Commit

Permalink
Add docs for resource jenkins_authorization_global_matrix
Browse files Browse the repository at this point in the history
ringanta committed Jan 4, 2021
1 parent 0335a7f commit c7dd94d
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions docs/resources/authorization_global_matrix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# jenkins_authorization_global_matrix Resource

Manage global matrix permission set for local user on the Jenkins system.
The target Jenkins system must use Jenkin's own user database as its security realm.

## Example Usage

```hcl
resource "jenkins_authorization_global_matrix" "example" {
username = "example"
permissions = [
"Overall/Read",
"Job/Build",
"Job/Cancel",
"Job/Read"
]
}
```

## Argument Reference

The following arguments are required:

- `username` - (Required) Username of the local user.
- `permissions` - (Required) Permission set of the local user.
Permission format are `<group>/<action>`.
They are similiar with the permission name on the Jenkins authorization dashboard.


## Import

Local user can be imported using the `username` field, e.g.

```hcl
terraform import jenkins_authorization_global_matrix.example example
```
2 changes: 1 addition & 1 deletion docs/resources/local_user.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# jenkins_local_user Resource

Manage local user on the Jenkins system.
The target Jenkins ssytem must use Jenkin's own user database as its security realm.
The target Jenkins system must use Jenkin's own user database as its security realm.

## Example Usage

0 comments on commit c7dd94d

Please sign in to comment.