org.jclouds.scriptbuilder.statements.login
Class UserAdd
java.lang.Object
org.jclouds.scriptbuilder.statements.login.UserAdd
- All Implemented Interfaces:
- Statement
public class UserAdd
- extends Object
- implements Statement
Creates a statement that will add a given user to a machine ("login"), with optional
password, groups, private key, and authorized keys.
This is supported on most *nix environments. Not currently supported on Windows.
Note that some places where this is used may have stricter requirements on the parameters
(for example AdminAccess
requires password and keys).
- Author:
- Adrian Cole
UserAdd
public UserAdd(String login,
List<String> groups,
@Nullable
String password,
@Nullable
String installRSAPrivateKey,
List<String> authorizeRSAPublicKeys,
String defaultHome,
String shell)
builder
public static UserAdd.Builder builder()
functionDependencies
public Iterable<String> functionDependencies(OsFamily family)
- Specified by:
functionDependencies
in interface Statement
render
public String render(OsFamily family)
- Specified by:
render
in interface Statement
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.