Skip to content

ducminhle/terraform-module-nexus

Repository files navigation

terraform-module-nexus

Description

  • Create Blobstore
  • Create Docker repos (hosted and proxy)
  • Create Helm repos (hosted and proxy)

Requirements

Name Version
terraform >= 0.13.0

Providers

Name Version
nexus 1.10.2

Inputs

Name Description Type Default Required
blobstores List blobstores need to create list(any) [] no
docker_group_repos Docker group repos need to create any null no
docker_proxy_repos Docker proxy repos need to create list(any) [] no
docker_repos Docker repos need to create list(any) [] no
helm_repos Helm repos need to create list(any) [] no
nexus_insecure Nexus skip verify bool true no
nexus_password Nexus password to access string "" no
nexus_url Nexus URL to access any n/a yes
nexus_username Nexus username to access string "admin" no

Outputs

Name Description
docker_group List of docker group
docker_repos List of docker repositories
helm_repos List of helm repositories
nexus_blobstores List of helm blobstores

Example

Terragrunt

terragrunt.hcl

terraform {
  source = "github.com/ducminhle/terraform-module-nexus"
}

inputs = merge(
  yamldecode(
    file("${get_terragrunt_dir()}/values.yml"),
  ),
)

values.yml

nexus_url: http://127.0.0.1:8081
nexus_insecure: true
nexus_username: admin
nexus_password: admin

blobstores:
  - name: test
    type: File
    path: "/nexus-data/blobs/test"
    soft_quota:
      limit: 200000000
      type: spaceRemainingQuota

helm_repos:
  - name: binami
    type: proxy
    proxy_remote_url: https://charts.bitnami.com/bitnami
    proxy_content_max_age: 86400
    proxy_metadata_max_age: 86400
    storage_blob_store_name: default
    storage_strict_content_type_validation: true
    storage_write_policy: ALLOW
    negative_cache_enabled: true
    negative_cache_ttl: 86400

docker_repos:
  - name: dockerhub
    type: proxy
    docker_proxy_index_url: https://registry-1.docker.io
    docker_proxy_index_type: HUB
    http_port: 8090
    proxy_remote_url: https://registry-1.docker.io
    proxy_content_max_age: 86400
    proxy_metadata_max_age: 86400
    storage_blob_store_name: default
    storage_strict_content_type_validation: true
    storage_write_policy: ALLOW
    negative_cache_enabled: true
    negative_cache_ttl: 86400
  - name: test
    type: hosted
    http_port: 8082
    storage_blob_store_name: default
    storage_strict_content_type_validation: true
    storage_write_policy: ALLOW
    negative_cache_enabled: true
    storage_blob_store_name: test
    negative_cache_ttl: 86400

docker_group_repos:
  name: docker_groups
  http_port: 8083
  storage_blob_store_name: default
  storage_strict_content_type_validation: true
  storage_write_policy: ALLOW

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages