> +              .serverId(serverId)
> +              .build());
> +
> +      waitDcUntilAvailable.apply(dataCenterId);
> +      logger.trace("<< storage connected.");
> +      }
> +
> +      Server server = getNode(serverId);
> +
> +      // TODO Consult jclouds committers. Server credentials in profitbricks 
> are sent 
> +      // via email used in credentials.identity. We can set a password 
> during 
> +      // storage provisioning, maybe generate random characters?
> +      LoginCredentials serverCredentials = LoginCredentials.builder()
> +           .user("root")
> +           .password("<password_here>")
> +           .build();

jclouds needs the node credentials to be able to connect to the node when using 
the "runScript" methods. If credentials are configured per-node (instead of 
having default credentials per image), we should return them here.

If the password can be set during the node provisioning, that's perfect. If the 
user has set a password using the `templateOptions.overrideLoginPassword`, 
let's use that one, otherwise auto-generate a random one. The same applies to 
the user.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/145/files#r25674213

Reply via email to