Liking cljdoc? Tell your friends :D

pallet.crate.admin-user

Configure users with sudo permissions.

Configure users with sudo permissions.
raw docstring

admin-userclj

(admin-user)
(admin-user {:keys [username public-key-paths public-keys sudo create-user
                    create-home user-options]
             :or {sudo true}
             :as options})

Add an admin user

Builds a user for use in remote-admin automation. The user is given permission to sudo without password, so that passwords don't have to appear in scripts, etc.

:username : the username to create. Defaults to the current admin user.

:public-key-paths : a sequence of paths to public keys to be authorised on the user

:sudo : a flag to add the user to sudoers. Defaults to true.

:sudoers-args : a vector of args for passing to sudoers. Defaults to password-less sudo access to everything.

:install-sudo : a flag to install the sudoers package. Defaults to true.

:create-user : a flag to create the user. Defaults to true if the user doesn't exist.

:create-home : a flag to create the user's home directory. Defauts to true. When users are managed by, e.g. LDAP, you may need to set this to false.

:user-options : a map of options to pass to the user action when creating the user.

Add an admin user

Builds a user for use in remote-admin automation. The user is given
permission to sudo without password, so that passwords don't have to appear
in scripts, etc.

`:username`
: the username to create.  Defaults to the current admin user.

`:public-key-paths`
: a sequence of paths to public keys to be authorised on the user

`:sudo`
: a flag to add the user to sudoers.  Defaults to true.

`:sudoers-args`
: a vector of args for passing to sudoers. Defaults to password-less
sudo access to everything.

`:install-sudo`
: a flag to install the sudoers package.  Defaults to true.

`:create-user`
: a flag to create the user.  Defaults to true if the user doesn't
exist.

`:create-home`
: a flag to create the user's home directory.  Defauts to true.  When
users are managed by, e.g.  LDAP, you may need to set this to false.

`:user-options`
: a map of options to pass to the `user` action when creating the
user.
sourceraw docstring

configureclj

(configure {:keys [instance-id sudoers-instance-id] :as options})

Writes the configuration file for sudoers.

Writes the configuration file for sudoers.
sourceraw docstring

default-settingsclj

(default-settings)
source

default-sudoers-argsclj

(default-sudoers-args username)
source

default-userclj

(default-user)
source

facilityclj

source

server-specclj

(server-spec settings)

Convenience server spec to add the current admin-user on bootstrap.

Convenience server spec to add the current admin-user on bootstrap.
sourceraw docstring

settingsclj

(settings settings)
source

UserSettingsclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close