User for authentication.
The admin user is used for running remote admin commands that require root permissions. The default admin user is taken from the pallet.admin.username property. If not specified then the user.name property is used. The admin user can also be specified in config.clj when running tasks from the command line.
Positional factory function for class pallet.core.user.User.
Return the default private key path.
Return the default public key path
Return the effective username for a user. This is the :sudo-user, unless :no-sudo is set, in which case it is just the :username.
Creates a User record with the given username and options. Generally used
in conjunction with admin-user and pallet.api/with-admin-user, or passed
converge as the named :user argument.
: path string to public key file
: path string to private key file
: public key as a string or byte array
: private key as a string or byte array
: passphrase for private key
: ssh user password
: password for sudo (defaults to :password)
: the user to sudo to
: flag to not use sudo (e.g. when the user has root privileges).
: directory on target to use for pallet state files. Defaults to
: group shared between admin user and sudo-user. Used when uploading
files. Needed only if the sudo user is unprivileged, and the admin
user can't chown/chgrp files.
Factory function for class pallet.core.user.User, taking a map of keywords to field values.
Return a user with obfuscated passwords