GithubHelp home page GithubHelp logo

Comments (12)

fboender avatar fboender commented on July 24, 2024

Thanks, I'm going to implement a way of handling dynamic inventories. It might take a few days, as I'm kind of pressed for time at the moment.

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

Hey Azimut!

I've commited a set of changes that implement dynamic inventory scanning. I had to implement it against your example, examples from the Ansible documentation and the (rather broken) virtualbox dynamic inventory contrib script. It works for me, but most of the stuff I tested against has been basically mockups.

Can you give it a test spin; see how it works out for you? You'll have to clone the repo, as there's no packaged release with the changes yet.

Thanks for the suggestion!

Regards,

Ferry

from ansible-cmdb.

smiller171 avatar smiller171 commented on July 24, 2024

Hey, I just stumbled across this. I think I'll give it a shot against my 100+ node dynamic inventory this week

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

Hey Scott!

Please do! I'm curious if I got it right. ;-)

Thanks!
On Sep 27, 2015 5:24 AM, "Scott Miller" [email protected] wrote:

Hey, I just stumbled across this. I think I'll give it a shot against my
100+ node dynamic inventory this week


Reply to this email directly or view it on GitHub
#33 (comment)
.

from ansible-cmdb.

azimut avatar azimut commented on July 24, 2024

Thanks for you work! Somehow it's not working for me. Should this work when a directory is passed to the -i argument and a dyn inventory is present on that dir?

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

No, the argument to -i should point directly to the script itself. Is what you describe supported by Ansible? I don't think I read that in the docs, but I could have missed it. In that case, I'll implement it.

from ansible-cmdb.

azimut avatar azimut commented on July 24, 2024

Yup, it's here using-multiple-inventory-sources:

... When doing so, it is possible to mix both dynamic and statically managed inventory sources in the same ansible run. Instant hybrid cloud!

Thanks again!

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

Alright, I'll fix this so multiple inventory sources are supported. Thanks!

from ansible-cmdb.

smiller171 avatar smiller171 commented on July 24, 2024

@fboender if it doesn't already, you should check the ansible configuration for the default inventory path.

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

Multiple inventory sources are now supported in the latest master. I'm going to close this issue. If it turns out something doesn't work properly, please re-open it or create a new issue. Thanks!

@smiller171 I will create a new feature request for that. It's a good idea, since Ansible itself also doesn't need to be pointed to the inventory path.

from ansible-cmdb.

azimut avatar azimut commented on July 24, 2024

@fboender Thanks, it works for me.

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

@azimut Thanks for the feedback!

from ansible-cmdb.

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.