An open API service indexing awesome lists of open source software.

https://github.com/devops-ia/terraform-nexus-mail

Terraform module for create Nexus Mail
https://github.com/devops-ia/terraform-nexus-mail

nexus nexus-mail terraform terraform-module

Last synced: about 1 year ago
JSON representation

Terraform module for create Nexus Mail

Awesome Lists containing this project

README

          

# Nexus Mail

This module allows you to create **Nexus Privilege as a global resource** and **individual Nexus Privilege resources.** For individual examples, see the usage snippets and [examples](https://github.com/devops-ia/terraform-nexus-mail/tree/main/examples).

## Provider
You need use a [Nexus provider](https://registry.terraform.io/providers/datadrivers/nexus/latest/docs).
```hcl
provider "nexus" {
insecure = true
password = "admin123"
url = "https://127.0.0.1:8080"
username = "admin"
}
```

## Root module usage

`nexus-mail`:

```hcl
module "nexus_mail" {
source = "devops-ia/mail/nexus"

port = 25
host = "examplehost.org"
from_address = "from@examplehost.org"

enabled = true
username = "uname"
password = "topsecret"
subject_prefix = "prefix: "
start_tls_enabled = true
start_tls_required = true
ssl_on_connect_enabled = true
nexus_trust_store_enabled = true
}
```

## Individual module usage

`nexus-mail-config`:

```hcl
module "nexus_mail_config" {
source = "devops-ia/mail/nexus//modules/nexus-mail-config"

port = 25
host = "examplehost.org"
from_address = "from@examplehost.org"

enabled = true
username = "uname"
password = "topsecret"
subject_prefix = "prefix: "
start_tls_enabled = true
start_tls_required = true
ssl_on_connect_enabled = true
nexus_trust_store_enabled = true
}
```

## Terraform Docs

### Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.0 |
| [nexus](#requirement\_nexus) | >= 2.0.0 |

### Providers

No providers.

### Modules

| Name | Source | Version |
|------|--------|---------|
| [nexus\_mail\_config](#module\_nexus\_mail\_config) | ./modules/nexus-mail-config | n/a |

### Resources

No resources.

### Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [nexus\_mail\_config](#input\_nexus\_mail\_config) | Mail Config. |

list(object({
port = number
host = string
from_address = string
enabled = optional(bool)
username = optional(string)
password = optional(string)
subject_prefix = optional(string)
start_tls_enabled = optional(bool)
start_tls_required = optional(bool)
ssl_on_connect_enabled = optional(bool)
nexus_trust_store_enabled = optional(bool)
}))
| `[]` | no |

### Outputs

| Name | Description |
|------|-------------|
| [from\_address](#output\_from\_address) | From address |
| [host](#output\_host) | Host |
| [port](#output\_port) | Port |

## Authors

Module is maintained by [DevOps IA](https://github.com/devops-ia) with help from [these awesome contributors](https://github.com/devops-ia/terraform-nexus-mail/graphs/contributors).