On Thu, Aug 10, 2017 at 2:12 PM, Fabrice Bacchella <fabrice.bacchella@orange.fr> wrote:

Le 10 août 2017 à 10:52, Ondra Machacek <omachace@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 ?\


I think this is documentation bug, because AFAIK, it's not mandatory.