[ovirt-users] installation of hosts using public key

Fabrice Bacchella fabrice.bacchella at orange.fr
Thu Aug 10 12:12:50 UTC 2017


> Le 10 août 2017 à 10:52, Ondra Machacek <omachace at redhat.com> a écrit :
> 
> 

> Creates a new host. The host is created based on the attributes of the host parameter. The name, address and root_password properties are required.
> 
> But what to do if I don't have a root password to give ?
> 
> It's just true/false, you can't specify which key to use, it's using the default one:
> 
> types.Host(
>   ssh=types.Ssh(
>    authentication_method=types.SshAuthenticationMethod.PUBLICKEY,
>   ),
>   ...
> )
> 

I tried, it works.

But it's strange, because then, root_password which is mandatory, can be filled with None. So why it should be mandatory ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170810/9fbd52d5/attachment.html>


More information about the Users mailing list