Skip to content

Commit 1bd0085

Browse files
committed
feat: Add Nexus Repository module and related configurations
- Updated .github/typos.toml to exclude false positives for mavrickrishi's README.md. - Added nexus-repository.svg icon for the Nexus Repository module. - Updated README.md for mavrickrishi to reflect the new nexus-repository module. - Created README.md for the nexus-repository module with detailed configuration instructions. - Implemented main.tf for the nexus-repository module, defining necessary variables and resources. - Added main.test.ts for testing the nexus-repository module functionalities. - Created run.sh script to configure Nexus repository access for various package managers.
1 parent 97d144b commit 1bd0085

File tree

7 files changed

+110
-23
lines changed

7 files changed

+110
-23
lines changed

.github/typos.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ Hashi = "Hashi"
44
HashiCorp = "HashiCorp"
55

66
[files]
7-
extend-exclude = ["registry/coder/templates/aws-devcontainer/architecture.svg"] #False positive
7+
extend-exclude = [
8+
"registry/coder/templates/aws-devcontainer/architecture.svg", #False positive
9+
"registry/mavrickrishi/README.md" # False positive - mavrickrishi is a username
10+
]

.icons/nexus-repository.svg

Lines changed: 84 additions & 0 deletions
Loading

registry/mavrickrishi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ This directory contains Coder modules and templates created by mavrickrishi.
1111

1212
## Modules
1313

14-
- [nexus](./modules/nexus/) - Configure package managers to use Sonatype Nexus Repository
14+
- [nexus-repository](./modules/nexus-repository/) - Configure package managers to use Sonatype Nexus Repository

registry/mavrickrishi/modules/nexus/README.md renamed to registry/mavrickrishi/modules/nexus-repository/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
display_name: Nexus Repository
2+
display_name: Sonatype Nexus Repository
33
description: Configure package managers to use Sonatype Nexus Repository for Maven, npm, PyPI, and Docker registries.
4-
icon: ../../../.icons/nexus.svg
4+
icon: ../../../../.icons/nexus-repository.svg
55
verified: true
66
tags: [integration, nexus-repository, maven, npm, pypi, docker]
77
---
@@ -11,8 +11,8 @@ tags: [integration, nexus-repository, maven, npm, pypi, docker]
1111
Configure package managers (Maven, npm, Go, PyPI, Docker) to use [Sonatype Nexus Repository](https://help.sonatype.com/en/sonatype-nexus-repository.html) with API token authentication. This module provides secure credential handling, multiple repository support per package manager, and flexible username configuration.
1212

1313
```tf
14-
module "nexus" {
15-
source = "registry.coder.com/mavrickrishi/nexus/coder"
14+
module "nexus_repository" {
15+
source = "registry.coder.com/mavrickrishi/nexus-repository/coder"
1616
version = "1.0.0"
1717
agent_id = coder_agent.example.id
1818
nexus_url = "https://nexus.example.com"
@@ -41,8 +41,8 @@ module "nexus" {
4141
### Configure Maven to use Nexus repositories
4242

4343
```tf
44-
module "nexus" {
45-
source = "registry.coder.com/mavrickrishi/nexus/coder"
44+
module "nexus_repository" {
45+
source = "registry.coder.com/mavrickrishi/nexus-repository/coder"
4646
version = "1.0.0"
4747
agent_id = coder_agent.example.id
4848
nexus_url = "https://nexus.example.com"
@@ -56,8 +56,8 @@ module "nexus" {
5656
### Configure npm with scoped packages
5757

5858
```tf
59-
module "nexus" {
60-
source = "registry.coder.com/mavrickrishi/nexus/coder"
59+
module "nexus_repository" {
60+
source = "registry.coder.com/mavrickrishi/nexus-repository/coder"
6161
version = "1.0.0"
6262
agent_id = coder_agent.example.id
6363
nexus_url = "https://nexus.example.com"
@@ -71,8 +71,8 @@ module "nexus" {
7171
### Configure Go module proxy
7272

7373
```tf
74-
module "nexus" {
75-
source = "registry.coder.com/mavrickrishi/nexus/coder"
74+
module "nexus_repository" {
75+
source = "registry.coder.com/mavrickrishi/nexus-repository/coder"
7676
version = "1.0.0"
7777
agent_id = coder_agent.example.id
7878
nexus_url = "https://nexus.example.com"
@@ -86,8 +86,8 @@ module "nexus" {
8686
### Configure Python PyPI repositories
8787

8888
```tf
89-
module "nexus" {
90-
source = "registry.coder.com/mavrickrishi/nexus/coder"
89+
module "nexus_repository" {
90+
source = "registry.coder.com/mavrickrishi/nexus-repository/coder"
9191
version = "1.0.0"
9292
agent_id = coder_agent.example.id
9393
nexus_url = "https://nexus.example.com"
@@ -101,8 +101,8 @@ module "nexus" {
101101
### Configure Docker registries
102102

103103
```tf
104-
module "nexus" {
105-
source = "registry.coder.com/mavrickrishi/nexus/coder"
104+
module "nexus_repository" {
105+
source = "registry.coder.com/mavrickrishi/nexus-repository/coder"
106106
version = "1.0.0"
107107
agent_id = coder_agent.example.id
108108
nexus_url = "https://nexus.example.com"
@@ -116,8 +116,8 @@ module "nexus" {
116116
### Use custom username
117117

118118
```tf
119-
module "nexus" {
120-
source = "registry.coder.com/mavrickrishi/nexus/coder"
119+
module "nexus_repository" {
120+
source = "registry.coder.com/mavrickrishi/nexus-repository/coder"
121121
version = "1.0.0"
122122
agent_id = coder_agent.example.id
123123
nexus_url = "https://nexus.example.com"
@@ -132,8 +132,8 @@ module "nexus" {
132132
### Complete configuration for all package managers
133133

134134
```tf
135-
module "nexus" {
136-
source = "registry.coder.com/mavrickrishi/nexus/coder"
135+
module "nexus_repository" {
136+
source = "registry.coder.com/mavrickrishi/nexus-repository/coder"
137137
version = "1.0.0"
138138
agent_id = coder_agent.example.id
139139
nexus_url = "https://nexus.example.com"

registry/mavrickrishi/modules/nexus/main.test.ts renamed to registry/mavrickrishi/modules/nexus-repository/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
testRequiredVariables,
77
} from "~test";
88

9-
describe("nexus", async () => {
9+
describe("nexus-repository", async () => {
1010
await runTerraformInit(import.meta.dir);
1111

1212
testRequiredVariables(import.meta.dir, {

registry/mavrickrishi/modules/nexus/main.tf renamed to registry/mavrickrishi/modules/nexus-repository/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ EOF
104104

105105
resource "coder_script" "nexus" {
106106
agent_id = var.agent_id
107-
display_name = "nexus"
108-
icon = "/icon/nexus.svg"
107+
display_name = "nexus-repository"
108+
icon = "/icon/nexus-repository.svg"
109109
script = templatefile("${path.module}/run.sh", {
110110
NEXUS_URL = var.nexus_url
111111
NEXUS_HOST = local.nexus_host
File renamed without changes.

0 commit comments

Comments
 (0)