Liking cljdoc? Tell your friends :D

pallet.crate.sudoers


Aliasesclj

source

configureclj

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

Install the sudoers configuration based on settings

Install the sudoers configuration based on settings
sourceraw docstring

default-settingsclj

(default-settings)
source

default-specsclj

(default-specs)
source

Defaultsclj

source

DefaultsValueclj

source

facilityclj

source

installclj

(install &
         {:keys [package-name action]
          :or {package-name "sudo" action :install}})
source

server-specclj

(server-spec {:keys [] :as settings} & {:keys [instance-id] :as options})

Returns a server-spec that installs sudoers in the configure phase.

Returns a server-spec that installs sudoers in the configure phase.
sourceraw docstring

settingsclj

(settings settings & {:keys [instance-id] :as options})
source

Settingsclj

source

SpecKeyclj

source

SpecKeyOrKeysclj

source

Specsclj

source

SpecValueclj

source

sudoerclj

(sudoer aliases defaults specs {:keys [instance-id] :as options})

Add sudo configuration. By default, root and an admin group are already present.

Examples of the arguments are:

aliases { :user { :ADMINS [ "user1" "user2" ] } :host { :TRUSTED [ "host1" ] } :run-as-user { :OP [ "root" "sysop" ] } :cmnd { :KILL [ "kill" ] :SHELLS [ "/usr/bin/sh" "/usr/bin/csh" "/usr/bin/ksh"]}} default-map { :default { :fqdn true } :host { "host" { :lecture false } } :user { "user" { :lecture false } } :run-as-user { "sysop" { :lecture false } } } specs [ { ["user1" "user2"] { :host :TRUSTED :KILL { :run-as-user "operator" :tags :NOPASSWORD } ["/usr/bin/" "/usr/local/bin/"] { :run-as-user "root" :tags [:NOEXEC :NOPASSWORD} }

Add sudo configuration.
By default, root and an admin group are already present.

Examples of the arguments are:

aliases { :user { :ADMINS [ "user1" "user2" ] }
          :host { :TRUSTED [ "host1" ] }
          :run-as-user { :OP [ "root" "sysop" ] }
          :cmnd { :KILL [ "kill" ]
                  :SHELLS [ "/usr/bin/sh" "/usr/bin/csh" "/usr/bin/ksh"]}}
default-map { :default { :fqdn true }
              :host { "host" { :lecture false } }
              :user { "user" { :lecture false } }
              :run-as-user { "sysop" { :lecture false } } }
specs [ { ["user1" "user2"]
          { :host :TRUSTED
            :KILL { :run-as-user "operator" :tags :NOPASSWORD }
            ["/usr/bin/*" "/usr/local/bin/*"]
            { :run-as-user "root" :tags [:NOEXEC :NOPASSWORD} }
sourceraw docstring

sudoer-templatesclj

(sudoer-templates aliases-map default-map spec-map)
source

sudoersclj

(sudoers aliases defaults specs)

Sudo configuration. Generates a sudoers file. By default, root and an admin group are already present.

Examples of the arguments are:

aliases { :user { :ADMINS [ "user1" "user2" ] } :host { :TRUSTED [ "host1" ] } :run-as-user { :OP [ "root" "sysop" ] } :cmnd { :KILL [ "kill" ] :SHELLS [ "/usr/bin/sh" "/usr/bin/csh" "/usr/bin/ksh"]}} default-map { :default { :fqdn true } :host { "host" { :lecture false } } :user { "user" { :lecture false } } :run-as-user { "sysop" { :lecture false } } } specs [ { ["user1" "user2"] { :host :TRUSTED :KILL { :run-as-user "operator" :tags :NOPASSWORD } ["/usr/bin/" "/usr/local/bin/"] { :run-as-user "root" :tags [:NOEXEC :NOPASSWORD} }

Sudo configuration. Generates a sudoers file.
By default, root and an admin group are already present.

Examples of the arguments are:

aliases { :user { :ADMINS [ "user1" "user2" ] }
          :host { :TRUSTED [ "host1" ] }
          :run-as-user { :OP [ "root" "sysop" ] }
          :cmnd { :KILL [ "kill" ]
                  :SHELLS [ "/usr/bin/sh" "/usr/bin/csh" "/usr/bin/ksh"]}}
default-map { :default { :fqdn true }
              :host { "host" { :lecture false } }
              :user { "user" { :lecture false } }
              :run-as-user { "sysop" { :lecture false } } }
specs [ { ["user1" "user2"]
          { :host :TRUSTED
            :KILL { :run-as-user "operator" :tags :NOPASSWORD }
            ["/usr/bin/*" "/usr/local/bin/*"]
            { :run-as-user "root" :tags [:NOEXEC :NOPASSWORD} }
sourceraw docstring

sudoers-configclj

(sudoers-config [aliases-map default-map spec-map])
source

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

× close