GithubHelp home page GithubHelp logo

Comments (9)

inercia avatar inercia commented on May 23, 2024

Maybe we can find a solution in the context proposed in #46 ...

from terraform-provider-libvirt.

moio avatar moio commented on May 23, 2024

@inercia I do not think this is related.

Besides the fact I would agree with closing #46 the RFC is about embedding parameters for the ephemeral, "must-have" OS basic volume in the domain resource, while this is about extra "data" disks which might or might be there - hence in variable quantity.

from terraform-provider-libvirt.

moio avatar moio commented on May 23, 2024

My proposal would be to add a disk_ids list in the domain resource, which could be populated via variables or interpolation.

This could even supersede the current disk variable, unless there is a reason I cannot see for keeping one map object instead of a plain id.

@flavio, @dmacvicar?

from terraform-provider-libvirt.

moio avatar moio commented on May 23, 2024

Note this comment about disk_ids not being the right way to address this: #81 (comment)

from terraform-provider-libvirt.

moio avatar moio commented on May 23, 2024

Asked HashiCorp if this is a core issue or by design.

from terraform-provider-libvirt.

tboerger avatar tboerger commented on May 23, 2024

I would take other providers as a template, Scaleway got a comparable approach.

from terraform-provider-libvirt.

moio avatar moio commented on May 23, 2024

OK, seems it's possible to fix this on our side, accepting maps and not objects for the disk block. This would be completely backwards compatible and would allow interpolations/variables to work in the most flexible way.

https://gitter.im/hashicorp-terraform/Lobby?at=581793b5806316005dde1c80
https://github.com/hashicorp/terraform/blob/master/builtin/providers/heroku/resource_heroku_app.go#L111

I will probably attempt a pull request soon.

from terraform-provider-libvirt.

moio avatar moio commented on May 23, 2024

Correct solution should be, from my point of view, #83

from terraform-provider-libvirt.

moio avatar moio commented on May 23, 2024

PR merged, closing.

from terraform-provider-libvirt.

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.