Added resource_admin_mail_server resource

This commit is contained in:
Gavin Bunney
2019-10-08 15:38:15 -07:00
parent 8f7985c4e5
commit a9f39faec6
5 changed files with 247 additions and 6 deletions

View File

@@ -98,6 +98,32 @@ Additional to the above, the following attributes are emitted:
$ terraform import bitbucketserver_repository.test TEST/test-01
```
### Set Mail Server Configuration
```hcl
resource "bitbucketserver_admin_mail_server" "mail" {
hostname = "mail.example.com"
port = 465
protocol = "SMTPS"
sender_address = "bitbucket@example.com"
}
```
* `hostname` - Required. Hostname of the mail server.
* `port` - Required. Port number of the mail server. Typically port 25 or 587 for SMTP and 465 for SMTPS.
* `sender_address` - Required. Email address for notification emails.
* `protocol` - Optional. SMTP or SMTPS supported. Default `SMTP`
* `use_start_tls` - Optional. Use SSL/TLS if available. Default `true`
* `require_start_tls` - Optional. Require SSL to be used. Default `false`
* `username` - Optional. User to connect with.
* `password` - Optional. User to connect with.
#### Import Mail Configuration
```bash
$ terraform import bitbucketserver_admin_mail_server.mail mail.example.com
```
---
## Development Guide