-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for resource jenkins_authorization_global_matrix
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters