diff --git a/docs/resources/config_email.md b/docs/resources/config_email.md new file mode 100644 index 0000000..0c2d593 --- /dev/null +++ b/docs/resources/config_email.md @@ -0,0 +1,20 @@ +# Resource: harbor_config_system + +## Example Usage + +```hcl +resource "harbor_config_email" "main" { + email_host = "server.acme.com" + email_from = "dont_reply@acme.com" +} +``` + +## 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, `dont_reply@acme.com` +* **email_ssl** - (Optional) Enable SSL for email server connection \ No newline at end of file diff --git a/provider/resource_config_email.go b/provider/resource_config_email.go index f4218ab..bcdb6ee 100644 --- a/provider/resource_config_email.go +++ b/provider/resource_config_email.go @@ -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,