All Projects → datadrivers → terraform-provider-nexus

datadrivers / terraform-provider-nexus

Licence: MPL-2.0 license
Terraform provider for Sonatype Nexus

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to terraform-provider-nexus

terraform-provider-spinnaker
Terraform Provider to manage spinnaker pipelines
Stars: ✭ 36 (-51.35%)
Mutual labels:  cicd, terraform-provider
nexus3-crowd-plugin
Sonatype Nexus plugin for Atlassian Crowd integration
Stars: ✭ 33 (-55.41%)
Mutual labels:  sonatype-nexus, sonatype
sonatype-publish-plugin
Gradle Plugin for publishing artifacts to Sonatype and Nexus
Stars: ✭ 17 (-77.03%)
Mutual labels:  nexus, sonatype
nexus-repository-conan
Conan the Barbarian, C packaging, fun times
Stars: ✭ 37 (-50%)
Mutual labels:  sonatype-nexus, sonatype
nexus-blobstore-s3
[*No longer maintained*] Nexus Repository S3 Blobstores
Stars: ✭ 59 (-20.27%)
Mutual labels:  sonatype-nexus, sonatype
django-step-by-step
A Django + Vue reference project that focuses on developer tooling and CI/CD + IaC
Stars: ✭ 86 (+16.22%)
Mutual labels:  cicd
terraform-provider-opc
Terraform Oracle Public Cloud provider
Stars: ✭ 29 (-60.81%)
Mutual labels:  terraform-provider
nexus3-github-oauth-plugin
This nexus plugin provides a way to authenticate/authorize your users based on Github.
Stars: ✭ 52 (-29.73%)
Mutual labels:  nexus
terraform-provider-jenkins
A Terraform plugin to enable JenkinsCI manipulation from Terraform.
Stars: ✭ 47 (-36.49%)
Mutual labels:  terraform-provider
MixewayHub
Mixeway is security orchestrator for vulnerability scanners which enable easy plug in integration with CICD pipelines. MixewayHub project contain one click docker-compose file which configure and run images from docker hub.
Stars: ✭ 80 (+8.11%)
Mutual labels:  cicd
kubedock
Kubedock is a minimal implementation of the docker api that will orchestrate containers on a Kubernetes cluster, rather than running containers locally.
Stars: ✭ 79 (+6.76%)
Mutual labels:  cicd
terraform-provider-phpipam
Terrform provider for PHPIPAM
Stars: ✭ 45 (-39.19%)
Mutual labels:  terraform-provider
terraform-provider-auth0
Please see https://github.com/alexkappa/terraform-provider-auth0
Stars: ✭ 28 (-62.16%)
Mutual labels:  terraform-provider
maven-artifacts-uploader
command line tool for uploading directory of maven artifacts to nexus 3.x repository
Stars: ✭ 30 (-59.46%)
Mutual labels:  nexus
terraform-provider-servicenow
Terraform provider to manage ServiceNow objects.
Stars: ✭ 25 (-66.22%)
Mutual labels:  terraform-provider
terraform-provider-signalfx
Terraform SignalFx provider
Stars: ✭ 26 (-64.86%)
Mutual labels:  terraform-provider
swingletree
☔ Integrate and observe the results of your CI/CD pipeline tools
Stars: ✭ 14 (-81.08%)
Mutual labels:  cicd
terraform-provider-akamai
Terraform Akamai provider
Stars: ✭ 75 (+1.35%)
Mutual labels:  terraform-provider
travis-ios-script
Reusable iOS script for Travis CI with Slack, Testflight, HockeyApp support
Stars: ✭ 40 (-45.95%)
Mutual labels:  cicd
terraform-provider-gotemplate
a custom terraform provider to use go text/template language instead of terraform's
Stars: ✭ 20 (-72.97%)
Mutual labels:  terraform-provider

Terraform provider Nexus

codeql workflow Contributor Covenant Go Report Card

Introduction

Terraform provider to configure Sonatype Nexus using it's API.

Implemented and tested with Sonatype Nexus 3.40.0-03.

Usage

Provider config

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

Development

Build

There is a makefile to build the provider and place it in repos root dir.

make

To use the local build version you need tell terraform where to look for it via a terraform config override.

Create dev.tfrc in your terraform code folder (f.e. in dev.tfrc):

# dev.tfrc
provider_installation {

  # Use /home/developer/tmp/terraform-nexus as an overridden package directory
  # for the datadrivers/nexus provider. This disables the version and checksum
  # verifications for this provider and forces Terraform to look for the
  # nexus provider plugin in the given directory.
  # relative path also works, but no variable or ~ evaluation
  dev_overrides {
    "datadrivers/nexus" = "../../"
  }

  # For all other providers, install them directly from their origin provider
  # registries as normal. If you omit this, Terraform will _only_ use
  # the dev_overrides block, and so no other providers will be available.
  direct {}
}

Tell your shell environment to use override file:

export TF_CLI_CONFIG_FILE=dev.tfrc

Now run your terraform commands (plan or apply), init is not required.

# start local nexus
make start-services
# run local terraform code
cd examples/local-development
terraform plan
terraform apply

Testing / Start Nexus Environment

NOTE: For testing Nexus Pro features, place the license.lic in scripts/.

For testing start a local Docker containers using make

make start-services

This will start a Docker and MinIO containers and expose ports 8081 and 9000.

Now start the tests

make testacc

or without S3 tests:

SKIP_S3_TESTS=1 make testacc

To debug tests

Set env variable TF_LOG=DEBUG to see additional output.

Use printState() function to discover terraform state (and resource props) during test.

Debug configurations are also available for VS Code.

Create documentation

To generate the terraform documentation from go files, you can run

make docs

Author

Datadrivers GmbH

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].