https://github.com/devops-ia/terraform-nexus-script
Terraform module for create Nexus Script
https://github.com/devops-ia/terraform-nexus-script
nexus nexus-script terraform terraform-module
Last synced: about 1 year ago
JSON representation
Terraform module for create Nexus Script
- Host: GitHub
- URL: https://github.com/devops-ia/terraform-nexus-script
- Owner: devops-ia
- License: mit
- Created: 2024-02-19T10:40:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T09:03:00.000Z (about 1 year ago)
- Last Synced: 2025-03-04T10:20:31.780Z (about 1 year ago)
- Topics: nexus, nexus-script, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/devops-ia/script/nexus
- Size: 44.9 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 Script
This module allows you to create **Nexus Script as a global resource** and **individual Nexus Script resources.** For individual examples, see the usage snippets and [examples](https://github.com/devops-ia/terraform-nexus-script/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-script`:
```hcl
module "nexus_script" {
source = "devops-ia/script/nexus/"
nexus_script = [
{
name = "create-repo-pypi-internal"
type = "groovy"
content = "repository.createPyPiHosted('pypi-internal')"
}
]
}
```
## Individual module usage
`nexus-script`:
```hcl
module "nexus_script" {
source = "devops-ia/script/nexus//modules/nexus-script"
name = "create-repo-pypi-internal"
type = "groovy"
content = "repository.createPyPiHosted('pypi-internal')"
}
```
## 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\_script](#module\_nexus\_script) | ./modules/nexus-script | n/a |
### Resources
No resources.
### Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [nexus\_script](#input\_nexus\_script) | value |
list(object({
name = string
type = optional(string)
content = string
})) | `[]` | no |
### Outputs
| Name | Description |
|------|-------------|
| [script\_name](#output\_script\_name) | The name of the script. |
## 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-script/graphs/contributors).