Liking cljdoc? Tell your friends :D

puppetlabs.puppetdb.config

Centralized place for reading a user-defined config INI file, validating, defaulting and converting into a format that can startup a PuppetDB instance.

The schemas in this file define what is expected to be present in the INI file and the format expected by the rest of the application.

Centralized place for reading a user-defined config INI file, validating,
defaulting and converting into a format that can startup a PuppetDB instance.

The schemas in this file define what is expected to be present in the INI file
and the format expected by the rest of the application.
raw docstring

add-web-routing-service-configclj

(add-web-routing-service-config config-data)
source

adjust-and-validate-tk-configclj

source

all-optionalclj

(all-optional map-schema)

Returns a schema map with all the keys made optional

Returns a schema map with all the keys made optional
sourceraw docstring

check-fact-regexclj

(check-fact-regex fact)
source

coerce-and-validate-final-configclj

(coerce-and-validate-final-config config schema-out)
source

command-processing-inclj

Schema for incoming command processing config (user defined) - currently incomplete

Schema for incoming command processing config (user defined) - currently incomplete
sourceraw docstring

command-processing-outclj

Schema for parsed/processed command processing config - currently incomplete

Schema for parsed/processed command processing config - currently incomplete
sourceraw docstring

config-serviceclj

source

configure-command-processingclj

(configure-command-processing config)
source

configure-dbsclj

(configure-dbs config)
source

configure-developerclj

(configure-developer config)
source

configure-globalsclj

(configure-globals config)

Configures the global properties from the user defined config

Configures the global properties from the user defined config
sourceraw docstring

configure-puppetdbclj

(configure-puppetdb config)

Validates the [puppetdb] section of the config

Validates the [puppetdb] section of the config
sourceraw docstring

configure-read-dbclj

(configure-read-db {:keys [database read-database] :as config})

Ensures that the config contains a suitable [read-database]. If the section already exists, validates and converts it to the internal format. Otherwise, creates it from values in the [database] section, which must have already been fully configured.

Ensures that the config contains a suitable [read-database].  If the
section already exists, validates and converts it to the internal
format.  Otherwise, creates it from values in the [database]
section, which must have already been fully configured.
sourceraw docstring

configure-sectionclj

(configure-section config section schema-in schema-out)

Validates the indicated top-level section of an incoming config and establishes defaults as specified by schema-in, and then coerces the values and validates the final result as specified by schema-out.

Validates the indicated top-level section of an incoming config and
establishes defaults as specified by schema-in, and then coerces the
values and validates the final result as specified by schema-out.
sourceraw docstring

convert-blacklist-settings-to-blocklistclj

(convert-blacklist-settings-to-blocklist config)
source

convert-blocklist-configclj

(convert-blocklist-config config)

Validate and convert facts blocklist section of the config to runtime format. Throws a {:type ::cli-error :message m} exception describing errors when compiling facts-blocklist regex patterns if :facts-blocklist-type is set to "regex".

Validate and convert facts blocklist section of the config to runtime format.
Throws a {:type ::cli-error :message m} exception describing errors when compiling
facts-blocklist regex patterns if :facts-blocklist-type is set to "regex".
sourceraw docstring

convert-certificate-whitelist-to-allowlistclj

(convert-certificate-whitelist-to-allowlist pdb-section)
source

convert-configclj

(convert-config config)

Given a config map (created from the user defined config), validate, default and convert it to the internal Clojure format that PuppetDB expects

Given a `config` map (created from the user defined config), validate, default and convert it
to the internal Clojure format that PuppetDB expects
sourceraw docstring

convert-query-timeoutsclj

(convert-query-timeouts config)
source

create-defaulted-config-serviceclj

(create-defaulted-config-service transform-config)
source

default-events-ttlclj

(default-events-ttl config)
source

default-max-command-sizeclj

(default-max-command-size)

Returns the max command size relative to the current max heap. This number was reached through testing of large catalogs and 1/205 was the largest catalog that could be processed without GC or out of memory errors

Returns the max command size relative to the current max heap. This
number was reached through testing of large catalogs and 1/205 was
the largest catalog that could be processed without GC or out of
memory errors
sourceraw docstring

default-web-router-configclj

source

DefaultedConfigcljprotocol

get-configclj

(get-config this)
source

developer-config-inclj

source

developer-config-outclj

source

ensure-connection-users-infoclj

(ensure-connection-users-info config)
source

ensure-long-or-doubleclj

(ensure-long-or-double x)
source

ensure-migrator-infoclj

(ensure-migrator-info config)
source

filter-out-non-tk-configclj

(filter-out-non-tk-config config-data)
source

fix-up-db-settingsclj

(fix-up-db-settings section-key settings)
source

forbid-duplicate-write-db-subnamesclj

(forbid-duplicate-write-db-subnames config)
source

foss?clj

(foss? config)
source

gc-intervals->periodsclj

(gc-intervals->periods {:keys [gc-interval] :as config})
source

half-the-coresclj

Half the number of CPU cores, used for defaulting the number of command processors

Half the number of CPU cores, used for defaulting the number of
command processors
sourceraw docstring

half-the-cores*clj

(half-the-cores*)

Function for computing half the cores of the system, useful for testing.

Function for computing half the cores of the system, useful
for testing.
sourceraw docstring

hook-tk-parse-config-dataclj

(hook-tk-parse-config-data f args)

This is a robert.hooke compatible hook that is designed to intercept trapperkeeper configuration before it is used, so that we may munge & customize it. It may throw {:type ::cli-error :message m}.

This is a robert.hooke compatible hook that is designed to intercept
trapperkeeper configuration before it is used, so that we may munge &
customize it.  It may throw {:type ::cli-error :message m}.
sourceraw docstring

init-config-serviceclj

(init-config-service context config transform-config request-shutdown)
source

interval->periodclj

(interval->period minutes)
source

max-command-sizeclj

(max-command-size config)
source

mq-thread-countclj

(mq-thread-count config)

Returns the desired number of MQ listener threads.

Returns the desired number of MQ listener threads.
sourceraw docstring

normalize-product-nameclj

(normalize-product-name product-name)

Checks that product-name is specified as a legal value, throwing an exception if not. Returns product-name if it's okay.

Checks that `product-name` is specified as a legal value, throwing an
exception if not. Returns `product-name` if it's okay.
sourceraw docstring

pe?clj

(pe? config)
source

per-database-config-inclj

Schema for incoming database config (user defined)

Schema for incoming database config (user defined)
sourceraw docstring

per-database-config-outclj

Schema for parsed/processed database config

Schema for parsed/processed database config
sourceraw docstring

per-write-database-config-inclj

Includes the common database config params, also the write-db specific ones

Includes the common database config params, also the write-db specific ones
sourceraw docstring

per-write-database-config-outclj

Schema for parsed/processed database config that includes write database params

Schema for parsed/processed database config that includes write database params
sourceraw docstring

prefer-db-user-on-username-mismatchclj

(prefer-db-user-on-username-mismatch {:keys [user username] :as config}
                                     db-section-name)
source

process-config!clj

(process-config! config)

Accepts a map containing all of the user-provided configuration values and configures the various PuppetDB subsystems.

Accepts a map containing all of the user-provided configuration values
and configures the various PuppetDB subsystems.
sourceraw docstring

puppetdb-config-inclj

Schema for validating the incoming [puppetdb] block

Schema for validating the incoming [puppetdb] block
sourceraw docstring

puppetdb-config-outclj

Schema for validating the parsed/processed [puppetdb] block

Schema for validating the parsed/processed [puppetdb] block
sourceraw docstring

redirect-obsolete-config-settingclj

(redirect-obsolete-config-setting config obsolete replacement)
source

reject-large-commands?clj

(reject-large-commands? config)
source

report-ttl-defaultclj

source

require-db-subnameclj

(require-db-subname {:keys [subname] :as config} section-key)

Ensures the database config includes a subname. Throws a {:type ::cli-error :message m} on error.

Ensures the database config includes a subname.  Throws a
{:type ::cli-error :message m} on error.
sourceraw docstring

require-enclosing-report-ttlclj

(require-enclosing-report-ttl {:keys [resource-events-ttl report-ttl]
                               :as config}
                              section-key)

Ensures the report-ttl is at least as long as the resource-events-ttl. Throws a {:type ::cli-error :message m} on error.

Ensures the report-ttl is at least as long as the
resource-events-ttl.  Throws a {:type ::cli-error :message m} on error.
sourceraw docstring

stockpile-dirclj

(stockpile-dir config)
source

throw-cli-errorclj

(throw-cli-error msg)
source

using-ssl?clj

(using-ssl? config)
source

validate-and-default-incoming-configclj

(validate-and-default-incoming-config config schema-in)
source

validate-vardirclj

(validate-vardir config)

Checks that vardir is specified, exists, and is writeable, throwing appropriate exceptions if any condition is unmet.

Checks that `vardir` is specified, exists, and is writeable, throwing
appropriate exceptions if any condition is unmet.
sourceraw docstring

warn-and-validateclj

(warn-and-validate schema data)

Warns a user about unknown configurations items, removes them and validates the config.

Warns a user about unknown configurations items, removes them and validates the config.
sourceraw docstring

warn-if-mismatched-node-purge-ttlsclj

(warn-if-mismatched-node-purge-ttls config)

Warn if the read-database has a node-purge-ttl that doesn't match the value for a database with the same subname.

Warn if the read-database has a node-purge-ttl that doesn't match the
value for a database with the same subname.
sourceraw docstring

warn-retirementsclj

(warn-retirements config-data)

Warns about configuration retirements. Abruptly exits the entire process if a [global] url-prefix is found.

Warns about configuration retirements.  Abruptly exits the entire
process if a [global] url-prefix is found.
sourceraw docstring

warn-unknown-keysclj

(warn-unknown-keys schema data)
source

write-databasesclj

(write-databases config)

Inputs: [config]

Returns a map of database names to their configs. Each :database-NAME section in the config will produce a map entry with NAME as the key. If the config only contains a single :database section, its key will be "default" and its config map will have ::unnamed set to true.

Inputs: [config]

Returns a map of database names to their configs.  Each
:database-NAME section in the config will produce a map entry with
NAME as the key.  If the config only contains a single :database
section, its key will be "default" and its config map will
have ::unnamed set to true.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close