# Sourcing host names, group assignments, and variable values from Cobbler

**URL:** <https://forum.ansible.com/t/sourcing-host-names-group-assignments-and-variable-values-from-cobbler/11356>\
**Category:** Ansible Project\
**Created:** [March 17, 2012, 12:03am UTC](https://forum.ansible.com/t/sourcing-host-names-group-assignments-and-variable-values-from-cobbler/11356 "2012-03-17T00:03:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [March 17, 2012, 12:03am UTC](https://forum.ansible.com/t/sourcing-host-names-group-assignments-and-variable-values-from-cobbler/11356/1 "2012-03-17T00:03:02Z")

</div>

This is an example of the aforementioned External Inventory support. Notes on how it works are listed at  
the top of the file. It should make sense for anyone who is familiar with Cobbler, and somewhat less  
sense for those who are not – which is why the docs will be explaining in a bit more detail.

SEE HERE:

[https://github.com/mpdehaan/ansible/blob/master/examples/scripts/cobbler\_external\_inventory.py](https://github.com/mpdehaan/ansible/blob/master/examples/scripts/cobbler_external_inventory.py)

The enterprising reader can extend this to support LDAP, SQL, NoSQL, or pretty much anything else.

If someone would like to write similar scripts, we can keep them in the source tree in the examples  
directory too.

–Michael

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [March 17, 2012, 2:56am UTC](https://forum.ansible.com/t/sourcing-host-names-group-assignments-and-variable-values-from-cobbler/11356/2 "2012-03-17T02:56:47Z")

</div>

This is now documented on [http://ansible.github.com/api.html](http://ansible.github.com/api.html)

Let me know if things don’t make sense. Thanks!

–Michael
