Obtain dynamic inventory onto local machine using ovirt4.py for self-hosted engine

I have successfully deployed self-hosted-engine (4.2) on centos (7.4) server. the server address is ovirt where the self-hosted engine running on it has fdqn as engine.ovirt. I have ovirt,ini configured on server acan run the ovirt4.py from the server to obtain the vms in groups. But I want to control the vms using ansible from my macbook and run ansible playbooks locally. so I have downloaded the ovirt.ini and ovirt4.py from server and tried running it, but had no success. Is there something special needs setting up for 'self-hosted-ovirt-engine' as oppose to vanilla ovirt-engine which will allow me to control vms from my macbook? thanks.

Wouldn't it be safer and less error prone to ssh over vpn from your macbook to your server to run the playbooks? On Tue, May 22, 2018 at 7:44 PM, <03ce007@gmail.com> wrote:
I have successfully deployed self-hosted-engine (4.2) on centos (7.4) server.
the server address is ovirt where the self-hosted engine running on it has fdqn as engine.ovirt. I have ovirt,ini configured on server acan run the ovirt4.py from the server to obtain the vms in groups. But I want to control the vms using ansible from my macbook and run ansible playbooks locally.
so I have downloaded the ovirt.ini and ovirt4.py from server and tried running it, but had no success.
Is there something special needs setting up for 'self-hosted-ovirt-engine' as oppose to vanilla ovirt-engine which will allow me to control vms from my macbook?
thanks. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org

On 05/22/2018 06:44 PM, 03ce007@gmail.com wrote:
I have successfully deployed self-hosted-engine (4.2) on centos (7.4) server.
the server address is ovirt where the self-hosted engine running on it has fdqn as engine.ovirt. I have ovirt,ini configured on server acan run the ovirt4.py from the server to obtain the vms in groups. But I want to control the vms using ansible from my macbook and run ansible playbooks locally.
so I have downloaded the ovirt.ini and ovirt4.py from server and tried running it, but had no success.
Is there something special needs setting up for 'self-hosted-ovirt-engine' as oppose to vanilla ovirt-engine which will allow me to control vms from my macbook?
You don't need to do anything special. What's the error you get?
thanks. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org

Hello Ondra, you're correct, there was much accept removing 'connection: local' line from ovirt ansible roles. however, the example playbook to deploy new vm fails at template option and it complains that i don't have rhel7 template. Doesn't this come bundled with hosted-engine and is available after deployment? Do i need to create/install new template? On 23 May 2018 at 06:50, Ondra Machacek <omachace@redhat.com> wrote:
On 05/22/2018 06:44 PM, 03ce007@gmail.com wrote:
I have successfully deployed self-hosted-engine (4.2) on centos (7.4) server.
the server address is ovirt where the self-hosted engine running on it has fdqn as engine.ovirt. I have ovirt,ini configured on server acan run the ovirt4.py from the server to obtain the vms in groups. But I want to control the vms using ansible from my macbook and run ansible playbooks locally.
so I have downloaded the ovirt.ini and ovirt4.py from server and tried running it, but had no success.
Is there something special needs setting up for 'self-hosted-ovirt-engine' as oppose to vanilla ovirt-engine which will allow me to control vms from my macbook?
You don't need to do anything special. What's the error you get?
thanks. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org

On Wed, May 23, 2018 at 12:10 PM, 03CE 007 <03ce007@gmail.com> wrote:
Hello Ondra, you're correct, there was much accept removing 'connection: local' line from ovirt ansible roles.
however, the example playbook to deploy new vm fails at template option and it complains that i don't have rhel7 template. Doesn't this come bundled with hosted-engine and is available after deployment?
Do i need to create/install new template?
sounds like indeed you are missing this template in your system. take a look at https://github.com/oVirt/ovirt-ansible-image-template/blob/master/README.md for automatically creating a template from a web srource.
On 23 May 2018 at 06:50, Ondra Machacek <omachace@redhat.com> wrote:
On 05/22/2018 06:44 PM, 03ce007@gmail.com wrote:
I have successfully deployed self-hosted-engine (4.2) on centos (7.4) server.
the server address is ovirt where the self-hosted engine running on it has fdqn as engine.ovirt. I have ovirt,ini configured on server acan run the ovirt4.py from the server to obtain the vms in groups. But I want to control the vms using ansible from my macbook and run ansible playbooks locally.
so I have downloaded the ovirt.ini and ovirt4.py from server and tried running it, but had no success.
Is there something special needs setting up for 'self-hosted-ovirt-engine' as oppose to vanilla ovirt-engine which will allow me to control vms from my macbook?
You don't need to do anything special. What's the error you get?
thanks. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org
participants (5)
-
03CE 007
-
03ce007@gmail.com
-
Eitan Raviv
-
Moran Goldboim
-
Ondra Machacek