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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserAdd.Builder
-
Constructor Summary
Constructors Constructor Description UserAdd(com.google.common.base.Function<String,String> cryptFunction, String login, List<String> groups, String password, String installRSAPrivateKey, List<String> authorizeRSAPublicKeys, String defaultHome, String shell)
UserAdd(com.google.common.base.Function<String,String> cryptFunction, String login, List<String> groups, String password, String installRSAPrivateKey, List<String> authorizeRSAPublicKeys, String home, String defaultHome, String shell, String fullName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserAdd.Builder
builder()
boolean
equals(Object o)
Iterable<String>
functionDependencies(OsFamily family)
int
hashCode()
String
render(OsFamily family)
String
toString()
-
-
-
Method Detail
-
builder
public static UserAdd.Builder builder()
-
functionDependencies
public Iterable<String> functionDependencies(OsFamily family)
- Specified by:
functionDependencies
in interfaceStatement
-
-