summaryrefslogtreecommitdiffstats
path: root/base/server
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2016-02-29 13:12:56 -0500
committerAde Lee <alee@redhat.com>2016-03-01 17:47:53 -0500
commit7fb89b8f35eec398cec663bd17025e4e22e95855 (patch)
tree3989f47d4e24f02b79c201da7aa23ce0ec5c8788 /base/server
parenta39c64ff4b8d7b20f03a3bea0302daffc3d3c10e (diff)
Man updates for pre-check mode
Diffstat (limited to 'base/server')
-rw-r--r--base/server/man/man5/pki_default.cfg.530
-rw-r--r--base/server/man/man8/pkispawn.819
2 files changed, 48 insertions, 1 deletions
diff --git a/base/server/man/man5/pki_default.cfg.5 b/base/server/man/man5/pki_default.cfg.5
index 4e2c13bfc..edb338edf 100644
--- a/base/server/man/man5/pki_default.cfg.5
+++ b/base/server/man/man5/pki_default.cfg.5
@@ -21,7 +21,12 @@ pki_default.cfg \- Certificate Server instance default config file.
/etc/pki/default.cfg
.SH DESCRIPTION
-This file contains the default settings for a Certificate Server instance created using \fBpkispawn\fP. This file should not be edited, as it can be modified when the Certificate Server packages are updated. Rather, when setting up a Certificate Server instance, a user-provided configuration file can provide overrides to the defaults in /etc/pki/default.cfg. See \fBpkispawn(8)\fR for details.
+This file contains the default settings for a Certificate Server instance created
+using \fBpkispawn\fP. This file should not be edited, as it can be modified when
+the Certificate Server packages are updated. Instead, when setting up a
+Certificate Server instance, a user should provide \fBpkispawn\fP with a configuration
+file containing overrides to the defaults in \fB/etc/pki/default.cfg\fP.
+See \fBpkispawn(8)\fR for details.
.SH SECTIONS
\fIdefault.cfg\fP contains parameters that are grouped into sections.
@@ -41,6 +46,29 @@ This substitutes the value of pki_instance_name into the parameter value. It is
\fBNote:\fP
Any non-password related parameter values in the configuration file that needs to contain a \fB%\fP character must be properly escaped. For example, a value of \fBfoo%bar\fP would be specified as \fBfoo%%bar\fP in the configuration file.
+.SH PRE-CHECK PARAMETERS
+Once the configuration parameters have been constructed from the above sections and
+overrides, pkispawn will perform a series of basic tests to determine if the parameters
+being passed in are valid and consistent, before starting any installation. In
+pre-check mode, these tests are executed and then pkispawn exits.
+
+It is possible to disable specific tests by setting the directives below. While all
+these tests should pass to ensure a successful installation, it may be
+reasonable to skip tests in pre-check mode.
+.TP
+.B pki_skip_ds_verify
+.IP
+Skip verification of the Directory Server credentials. In this test, pkispawn attempts
+to bind to the directory server instance for the internal database using the provided
+credentials. This could be skipped if the directory server instance does not yet
+exist or is inaccessible. Defaults to False.
+.TP
+.B pki_skip_sd_verify
+.IP
+Skip verification of the security domain user/password. In this test, pkispawn
+attempts to log onto the security domain using the provided credentials. This can
+be skipped if the security domain is unavailable. Defaults to False.
+
.SH GENERAL INSTANCE PARAMETERS
The parameters described below, as well as the parameters located in the following sections, can be customized as part of a deployment. This list is not exhaustive.
.TP
diff --git a/base/server/man/man8/pkispawn.8 b/base/server/man/man8/pkispawn.8
index 411d93f0e..2a6b95084 100644
--- a/base/server/man/man8/pkispawn.8
+++ b/base/server/man/man8/pkispawn.8
@@ -81,6 +81,9 @@ Specifies the subsystem to be installed and configured, where <subsystem> is CA,
.B -f <config_file>
Specifies the path to the user-defined configuration file. This file contains differences between the default configuration and the custom configuration.
.TP
+.B --precheck
+Execute pre-checks and exit.
+.TP
.B -h, --help
Prints additional help information.
.TP
@@ -194,6 +197,22 @@ the username of the security domain administrator of the CA. Required only for n
\fIPassword:\fP
password for the security domain administrator. Required for all subsystems that are not root CAs.
+.SH PRE-CHECK MODE
+.PP
+This option is only available when pkispawn is invoked in a non-interactive mode.
+When the \fB--precheck\fP option is provided, a set of basic tests are performed to
+ensure that the parameters provided to pkispawn are valid and consistent.
+
+pkispawn will then exit with an exit code of 0 on success, or 1 on failure. This
+mode can be used to perform basic tests prior to doing any actual installation of
+the Certificate Server instance.
+
+Flags are available to disable specific tests. For instance, one might want to
+disable validation of the credentials for the internal database user if the
+directory server instance has not yet been created.
+
+See \fB pki_default.cfg(5) \fP for more details about available flags.
+
.SH EXAMPLES
.SS Installing a root CA