Skip to content

devops-ia/terraform-nexus-mail

Repository files navigation

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.

Provider

You need use a Nexus provider.

provider "nexus" {
  insecure = true
  password = "admin123"
  url      = "https://127.0.0.1:8080"
  username = "admin"
}

Root module usage

nexus-mail:

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

  port         = 25
  host         = "examplehost.org"
  from_address = "[email protected]"

  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:

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

  port         = 25
  host         = "examplehost.org"
  from_address = "[email protected]"

  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 >= 1.3.0
nexus >= 2.0.0

Providers

No providers.

Modules

Name Source Version
nexus_mail_config ./modules/nexus-mail-config n/a

Resources

No resources.

Inputs

Name Description Type Default Required
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 From address
host Host
port Port

Authors

Module is maintained by DevOps IA with help from these awesome contributors.