forked from jfrog/terraform-provider-artifactory
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jfrog#819 from jfrog/jfrogGH-735-add-resource-for-…
…mail-server Add resource for mail server
- Loading branch information
Showing
20 changed files
with
678 additions
and
40 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,57 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "artifactory_mail_server Resource - terraform-provider-artifactory" | ||
subcategory: "Configuration" | ||
--- | ||
|
||
# Artifactory Mail Server Resource | ||
|
||
Provides an Artifactory Mail Server resource. This can be used to create and manage Artifactory mail server configuration. | ||
|
||
## Example Usages | ||
|
||
```terraform | ||
resource "artifactory_mail_server" "mymailserver" { | ||
enabled = true | ||
artifactory_url = "http://tempurl.org" | ||
from = "[email protected]" | ||
host = "http://tempurl.org" | ||
username = "test-user" | ||
password = "test-password" | ||
port = 25 | ||
subject_prefix = "[Test]" | ||
use_ssl = true | ||
use_tls = true | ||
} | ||
``` | ||
|
||
## Argument reference | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `enabled` (Boolean) When set, mail notifications are enabled. | ||
- `host` (String) The mail server IP address / DNS. | ||
- `port` (Number) The port number of the mail server. | ||
|
||
### Optional | ||
|
||
- `artifactory_url` (String) The Artifactory URL to to link to in all outgoing messages. | ||
- `from` (String) The 'from' address header to use in all outgoing messages. | ||
- `password` (String) The password for authentication with the mail server. | ||
- `subject_prefix` (String) A prefix to use for the subject of all outgoing mails. | ||
- `use_ssl` (Boolean) When set to 'true', uses a secure connection to the mail server. | ||
- `use_tls` (Boolean) When set to 'true', uses Transport Layer Security when connecting to the mail server. | ||
- `username` (String) The username for authentication with the mail server. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import artifactory_mail_server.my-mail-server mymailserver | ||
``` | ||
|
||
~>The `password` attribute is not retrievable from Artifactory thus there will be state drift after importing this resource. |
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_mail_server.my-mail-server mymailserver |
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,12 @@ | ||
resource "artifactory_mail_server" "mymailserver" { | ||
enabled = true | ||
artifactory_url = "http://tempurl.org" | ||
from = "[email protected]" | ||
host = "http://tempurl.org" | ||
username = "test-user" | ||
password = "test-password" | ||
port = 25 | ||
subject_prefix = "[Test]" | ||
use_ssl = true | ||
use_tls = 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package provider | ||
|
||
var Version = "9.0.0" // needs to be exported so make file can update this | ||
var productId = "terraform-provider-artifactory/" + Version |
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.