-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…resource Add password expire policy and user lock policy resources
- Loading branch information
Showing
18 changed files
with
806 additions
and
16 deletions.
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
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,42 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "artifactory_password_expiration_policy Resource - terraform-provider-artifactory" | ||
subcategory: "Security" | ||
description: |- | ||
Provides an Artifactory Password Expiration Policy resource. | ||
--- | ||
|
||
# artifactory_password_expiration_policy (Resource) | ||
|
||
Provides an Artifactory Password Expiration Policy resource. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "artifactory_password_expiration_policy" "my-password-expiration-policy" { | ||
name = "my-password-expiration-policy" | ||
enabled = true | ||
password_max_age = 120 | ||
notify_by_email = true | ||
} | ||
``` | ||
|
||
## Argument reference | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `enabled` (Boolean) Enable Password Expiration Policy. This only applies to internal user passwords. | ||
- `name` (String) Name of the resource. Only used for importing. | ||
- `notify_by_email` (Boolean) Send mail notification before password expiration. Users will receive an email notification X days before password will expire. Mail server must be enabled and configured correctly. | ||
- `password_max_age` (Number) Password expires every N days. The time interval in which users will be obligated to change their password. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import artifactory_password_expiration_policy.my-password-expiration-policy my-password-expiration-policy | ||
``` |
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,40 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "artifactory_user_lock_policy Resource - terraform-provider-artifactory" | ||
subcategory: "Security" | ||
description: |- | ||
Provides an Artifactory User Lock Policy resource. | ||
--- | ||
|
||
# artifactory_user_lock_policy (Resource) | ||
|
||
Provides an Artifactory User Lock Policy resource. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "artifactory_user_lock_policy" "my-user-lock-policy" { | ||
name = "my-user-lock-policy" | ||
enabled = true | ||
login_attempts = 10 | ||
} | ||
``` | ||
|
||
## Argument reference | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `enabled` (Boolean) Enable User Lock Policy. Lock user after exceeding max failed login attempts. | ||
- `login_attempts` (Number) Max failed login attempts. | ||
- `name` (String) Name of the resource. Only used for importing. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import artifactory_user_lock_policy.my-user-lock-policy my-user-lock-policy | ||
``` |
1 change: 1 addition & 0 deletions
1
examples/resources/artifactory_password_expiration_policy/import.sh
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 @@ | ||
terraform import artifactory_password_expiration_policy.my-password-expiration-policy my-password-expiration-policy |
6 changes: 6 additions & 0 deletions
6
examples/resources/artifactory_password_expiration_policy/resource.tf
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,6 @@ | ||
resource "artifactory_password_expiration_policy" "my-password-expiration-policy" { | ||
name = "my-password-expiration-policy" | ||
enabled = true | ||
password_max_age = 120 | ||
notify_by_email = true | ||
} |
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 @@ | ||
terraform import artifactory_user_lock_policy.my-user-lock-policy my-user-lock-policy |
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,5 @@ | ||
resource "artifactory_user_lock_policy" "my-user-lock-policy" { | ||
name = "my-user-lock-policy" | ||
enabled = true | ||
login_attempts = 10 | ||
} |
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
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
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
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
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
Oops, something went wrong.