​Hi Brian,
​

On 23 February 2015 at 20:01, Brian Dunbar <[email protected]> wrote:

> What are my options for Ansible extracting data from an external source
> for inventory?
>

​The easy answer, is 'dynamic inventory' where you can write whatever
script in whatever language you want, that returns all your data​ in a
specific JSON scheme:

    http://docs.ansible.com/intro_dynamic_inventory.html

Of course, translating such data into the ansible model, with (parent/child
inheriting) groups and hosts, demands more thought, and also strongly
depends on the way you want to write your playbooks, possibly think of
things like dev vs testing vs production etc.


> [1] We currently have two, canonical sources of information: Confluence
> and our CRM.  But I can use anything if it works.
>

​If your source has some API you can query from said script, your are good
to go.
(I'm not sure how you would query structured data from Confluence​

​though.)


    Serge​

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEhzMJBs8usJOF8vEKYPngs%3DXZvcvPznkqQxHmg3Wo1m%2B5PaMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to