[ovirt-users] Re: Obtain dynamic inventory onto local machine using ovirt4.py for self-hosted engine

2018-05-23 Thread Moran Goldboim
On Wed, May 23, 2018 at 12:10 PM, 03CE 007 <03ce...@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  wrote:
>
>> On 05/22/2018 06:44 PM, 03ce...@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-le...@ovirt.org
>>>
>>>
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


[ovirt-users] Re: Obtain dynamic inventory onto local machine using ovirt4.py for self-hosted engine

2018-05-23 Thread 03CE 007
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  wrote:

> On 05/22/2018 06:44 PM, 03ce...@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-le...@ovirt.org
>>
>>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


[ovirt-users] Re: Obtain dynamic inventory onto local machine using ovirt4.py for self-hosted engine

2018-05-22 Thread Ondra Machacek

On 05/22/2018 06:44 PM, 03ce...@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-le...@ovirt.org


___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


[ovirt-users] Re: Obtain dynamic inventory onto local machine using ovirt4.py for self-hosted engine

2018-05-22 Thread Eitan Raviv
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,  <03ce...@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-le...@ovirt.org
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org