Comments (12)
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.
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.
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.
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.
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.
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.
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.
Alright, I'll fix this so multiple inventory sources are supported. Thanks!
from ansible-cmdb.
@fboender if it doesn't already, you should check the ansible configuration for the default inventory path.
from ansible-cmdb.
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.
@fboender Thanks, it works for me.
from ansible-cmdb.
@azimut Thanks for the feedback!
from ansible-cmdb.
Related Issues (20)
- RFE: Provide ability to prune some variables from host/group vars
- Is it possible to add additional & custom columns to the CSV template? HOT 2
- Comments must be stripped before calling shlex.split
- ModuleNotFoundError: No module named 'ansiblecmdb' HOT 2
- New column: public IP address HOT 1
- [html_fancy_split] Unable to sort custom column by mixed type "string"/ "num" AND how to custom template html_fancy_split HOT 9
- CSV import feature to manage inventory and host_vars easily HOT 1
- CSV export feature for easy reporting HOT 2
- kernel info to txt_table.tpl
- Ansible Tower Generated Json Output unable to generate report HOT 1
- No suitable python version found (v2.7 or higher required). Aborting HOT 4
- Template html fancy split is broken with Edge when excluding columns HOT 1
- Debian 11 can't use default template with ansible-cmdb 1.31 HOT 3
- F
- Markdown split doesn't work
- Does not get built with python-packaging 23.0
- [Question] Offline js libraries
- Using facts_cache for esx hosts is not working properly HOT 1
- Custom fact using command output HOT 1
- python 3.12: imp is deprecated in favor of importlib HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-cmdb.