Skip to content

Commit

Permalink
Merge pull request #23 from BESTSELLER/email_config_bug
Browse files Browse the repository at this point in the history
Email config bug
  • Loading branch information
wrighbr authored Nov 2, 2020
2 parents 21ecbd6 + 74a1413 commit ce0f3b5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions docs/resources/config_email.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Resource: harbor_config_system

## Example Usage

```hcl
resource "harbor_config_email" "main" {
email_host = "server.acme.com"
email_from = "[email protected]"
}
```

## Argument Reference
The following arguments are supported:

* **email_host** - (Required) The FQDN of the email server
* **email_port** - (Optional) The smtp port for the email server `Default: 25`
* **email_username** - (Optional) The username for the email server
* **email_password** - (Optional) The password for the email server
* **email_from** - (Required) - The email from address ie, `[email protected]`
* **email_ssl** - (Optional) Enable SSL for email server connection
5 changes: 3 additions & 2 deletions provider/resource_config_email.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ func resourceConfigEmail() *schema.Resource {
Required: true,
},
"email_port": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeInt,
Optional: true,
Default: 25,
},
"email_username": {
Type: schema.TypeString,
Expand Down

0 comments on commit ce0f3b5

Please sign in to comment.