Giter VIP home page Giter VIP logo

Comments (4)

Nosmoht avatar Nosmoht commented on June 13, 2024

As the error message says: you can't delete a blobstore in use. So with your first run, Terraform destroys the repos and parallel the blobstore, which is still in use.
With your second TF run, repos are already deleted and blobstores can be deleted.

Do you have a resource nexus_blobstore.default which you can use for Terraform dependency? Just wondering as default blobstore is by default in Nexus.

from terraform-provider-nexus.

android-leha avatar android-leha commented on June 13, 2024

Yes, I have.

But I think, provider should automatically recognize dependencies between repos and blobstores, and start to process blobstores, only after all repositories are deleted.

from terraform-provider-nexus.

Nosmoht avatar Nosmoht commented on June 13, 2024

This is a standard Terraform feature.

resource  "nexus_blobstore" "demo"  {
  name = "demo"
...
}

resource "nexus_repository" "demo" {
  name = "demo"
  ...
  storage {
     blob_store_name = nexus_blobstore.demo.id
     ...
  }

from terraform-provider-nexus.

android-leha avatar android-leha commented on June 13, 2024

Thank you for help.
Readme confused me a little, so I thought it is not possible to define link to resource instead of name.

Just want to mention for group repositories need to define name

    group {
        member_names = [
            nexus_repository.maven_proxy_central.name,
            nexus_repository.maven_proxy_spring.name,
            nexus_repository.maven_hosted_releases.name,
        ]
    }

from terraform-provider-nexus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.