https://github.com/devops-ia/terraform-nexus-routing
Terraform module for create Nexus Routing
https://github.com/devops-ia/terraform-nexus-routing
nexus nexus-routing terraform terraform-module
Last synced: about 1 year ago
JSON representation
Terraform module for create Nexus Routing
- Host: GitHub
- URL: https://github.com/devops-ia/terraform-nexus-routing
- Owner: devops-ia
- License: mit
- Created: 2024-02-18T08:38:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T09:02:52.000Z (about 1 year ago)
- Last Synced: 2025-03-04T10:20:27.345Z (about 1 year ago)
- Topics: nexus, nexus-routing, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/devops-ia/routing/nexus
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Nexus Routing
This module allows you to create **Nexus Routing as a global resource** and **individual Nexus Routing resources.** For individual examples, see the usage snippets and [examples](https://github.com/devops-ia/terraform-nexus-routing/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-routing`:
```hcl
module "nexus_routing" {
source = "devops-ia/routing/nexus"
nexus_routing_rule = [
{
name = "stop-leaks"
description = "Prevent requests of internal names"
mode = "BLOCK"
matchers = [
"^/com/example/.*",
"^/org/example/.*",
]
},
]
}
```
## Individual module usage
`nexus-routing-rule`:
```hcl
module "nexus_routing_rule" {
source = "devops-ia/routing/nexus//modules/nexus-routing-rule"
name = "stop-leaks"
description = "Prevent requests of internal names"
mode = "BLOCK"
matchers = [
"^/com/example/.*",
"^/org/example/.*",
]
}
```
## 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\_routing\_rule](#module\_nexus\_routing\_rule) | ./modules/nexus-routing-rule | n/a |
### Resources
No resources.
### Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [nexus\_routing\_rule](#input\_nexus\_routing\_rule) | Routing Rule. |
list(object({
name = string
matchers = set(string)
description = optional(string)
mode = optional(string)
})) | `[]` | no |
### Outputs
| Name | Description |
|------|-------------|
| [routing\_rule\_name](#output\_routing\_rule\_name) | The name of the routing rule. |
## 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-routing/graphs/contributors).