# Ovirt/RHEV

**URL:** <https://forum.ansible.com/t/ovirt-rhev/12729>\
**Category:** Ansible Project\
**Created:** [April 28, 2013, 6:46pm UTC](https://forum.ansible.com/t/ovirt-rhev/12729 "2013-04-28T18:46:05Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Van\_der\_Kuss](https://avatars.discourse-cdn.com/v4/letter/v/7c8e57/32.png) [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Post date:** [April 28, 2013, 6:46pm UTC](https://forum.ansible.com/t/ovirt-rhev/12729/1 "2013-04-28T18:46:05Z")

</div>

Hi everyone,

I’m currently working om a oVirt/RHEV module and already got some basic things like

- define vm (currently no disks and nics etc but that will be added later)

- get the vm’s status and stop or start it based on the state

I don’t know if anyone here is using oVirt/RHEV but I wanted to ask what functionality you guys would like to see in this module.

Regards,

Vincent

---

<div class="post-metadata">

**Author:** ![Jim\_Richardson](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jim\_Richardson](https://forum.ansible.com/u/Jim_Richardson)\
**Post date:** [April 28, 2013, 9:29pm UTC](https://forum.ansible.com/t/ovirt-rhev/12729/2 "2013-04-28T21:29:11Z")

</div>

We are moving into oVirt and KVM territory ( from Xen ) and would definitely be interested in more ansible ways of handling them.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [April 29, 2013, 12:36am UTC](https://forum.ansible.com/t/ovirt-rhev/12729/3 "2013-04-29T00:36:57Z")

</div>

Would be very interested in seeing this.

Capabilities similar to the ec2 or rax modules are preferable, i.e. if you create new instances, return the same kind of instances list suitable with add\_hosts.

The other thing that probably makes sense is an ovirt inventory script.

---

<div class="post-metadata">

**Author:** ![Vincent\_Van\_der\_Kuss](https://avatars.discourse-cdn.com/v4/letter/v/7c8e57/32.png) [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Post date:** [April 29, 2013, 5:50am UTC](https://forum.ansible.com/t/ovirt-rhev/12729/4 "2013-04-29T05:50:35Z")

</div>

Ok, great.

I’l have al look at the ec2 module.

can someone point me to some docs or something about how to create an inventory script.

Thanks

---

<div class="post-metadata">

**Author:** ![Romeo\_Theriault](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@Romeo\_Theriault](https://forum.ansible.com/u/Romeo_Theriault)\
**Post date:** [April 29, 2013, 6:10am UTC](https://forum.ansible.com/t/ovirt-rhev/12729/5 "2013-04-29T06:10:09Z")

</div>

> Ok, great.
> 
> I'l have al look at the ec2 module.
> 
> can someone point me to some docs or something about how to create an  
> inventory script.

[http://ansible.cc/docs/api.html](http://ansible.cc/docs/api.html)

This page got me going on creating an inventory script.

---

<div class="post-metadata">

**Author:** ![Jim\_Richardson](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jim\_Richardson](https://forum.ansible.com/u/Jim_Richardson)\
**Post date:** [April 29, 2013, 6:12am UTC](https://forum.ansible.com/t/ovirt-rhev/12729/6 "2013-04-29T06:12:50Z")

</div>

A co-worker of mine has a useful ansible inventory script you might be able to use for info if nothing else.  
[https://github.com/drwahl/ansible-hosts](https://github.com/drwahl/ansible-hosts)

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [April 29, 2013, 6:41am UTC](https://forum.ansible.com/t/ovirt-rhev/12729/7 "2013-04-29T06:41:37Z")

</div>

> can someone point me to some docs or something about how to create an  
> inventory script.

[http://ansible.cc/docs/api.html#external-inventory-scripts](http://ansible.cc/docs/api.html#external-inventory-scripts)

Serge

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [April 29, 2013, 6:44am UTC](https://forum.ansible.com/t/ovirt-rhev/12729/8 "2013-04-29T06:44:28Z")

</div>

> > can someone point me to some docs or something about how to create an  
> > inventory script.
> 
> [http://ansible.cc/docs/api.html#external-inventory-scripts](http://ansible.cc/docs/api.html#external-inventory-scripts)
> 
> Though that's not what Michael intended, he was probably pointing to a

module retur​​ning ansible\_facts for ovirt, which means returning a  
'ansible\_facts: $dict' within the result dict

---

<div class="post-metadata">

**Author:** ![Vincent\_Van\_der\_Kuss](https://avatars.discourse-cdn.com/v4/letter/v/7c8e57/32.png) [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Post date:** [April 29, 2013, 11:18am UTC](https://forum.ansible.com/t/ovirt-rhev/12729/9 "2013-04-29T11:18:15Z")

</div>

Thanks everyone for the pointers.

I’ll have a look at them.

---

<div class="post-metadata">

**Author:** ![Vincent\_Van\_der\_Kuss](https://avatars.discourse-cdn.com/v4/letter/v/7c8e57/32.png) [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Post date:** [April 29, 2013, 11:28am UTC](https://forum.ansible.com/t/ovirt-rhev/12729/10 "2013-04-29T11:28:43Z")

</div>

> Would be very interested in seeing this.
> 
> Capabilities similar to the ec2 or rax modules are preferable, i.e. if you  
> create new instances, return the same kind of instances list suitable with  
> add\_hosts.

As far as I know ec2, you can only use predefined images (amis) whereas  
with ovirt you can define new vms from scratch or use existing templates.  
This will result in more options like disk size, memory size, number of  
nics etc..  
I would like to support both ways of defining new instances

Can you elaborate a bit more on this " return the same kind of instances  
list suitable with add\_hosts."

Vincent

---

<div class="post-metadata">

**Author:** ![Walid](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@Walid](https://forum.ansible.com/u/Walid)\
**Post date:** [November 2, 2013, 3:05pm UTC](https://forum.ansible.com/t/ovirt-rhev/12729/11 "2013-11-02T15:05:20Z")

</div>

how did it go, i am evaluting ovirt for work, and i love it, would love it more with a bit of automation

---

<div class="post-metadata">

**Author:** ![Vincent\_Van\_der\_Kuss](https://avatars.discourse-cdn.com/v4/letter/v/7c8e57/32.png) [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Post date:** [November 2, 2013, 3:43pm UTC](https://forum.ansible.com/t/ovirt-rhev/12729/12 "2013-11-02T15:43:25Z")

</div>

Hi Walid,

The module should be available in the next Ansible release, or you could checkout the dev branch on Github.

\_Vincent

---

<div class="post-metadata">

**Author:** ![Walid](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@Walid](https://forum.ansible.com/u/Walid)\
**Post date:** [November 2, 2013, 4:30pm UTC](https://forum.ansible.com/t/ovirt-rhev/12729/13 "2013-11-02T16:30:29Z")

</div>

Thank you, i will check it out

---

<div class="post-metadata">

**Author:** ![Edgars](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@Edgars](https://forum.ansible.com/u/Edgars)\
**Post date:** [November 2, 2013, 4:59pm UTC](https://forum.ansible.com/t/ovirt-rhev/12729/14 "2013-11-02T16:59:34Z")

</div>

Hi

Could you also add virtio-scsi disk interface?

Edgars

svētdiena, 2013. gada 28. aprīlis 20:46:05 UTC+2, Vincent Van der Kussen rakstīja:
