doc: add osh-piv-grace-reaper.pl config reference

pull/235/head
Stéphane Lesimple 5 years ago committed by Stéphane Lesimple
parent 9f28dfa977
commit 92d4a46ac5

@ -27,8 +27,12 @@ else {
}
}
# set default values
$config = {} if ref $config ne 'HASH';
$config->{'SyslogFacility'} //= 'local6';
# logging
if ($config && $config->{'SyslogFacility'}) {
if ($config->{'SyslogFacility'}) {
OVH::SimpleLog::setSyslog($config->{'SyslogFacility'});
}

@ -0,0 +1,35 @@
===================================
osh-piv-grace-reaper.conf reference
===================================
.. note::
The osh-piv-grace-reaper script is called by cron and is responsible for removing
temporary grace periods on PIV policies, once they expire. If you don't use PIV keys,
this script won't do anything (see :doc:`/using/piv`).
Option List
===========
Logging options
---------------
These options configure the way the script logs its actions
- `SyslogFacility`_
Option Reference
================
Logging
-------
SyslogFacility
**************
:Type: ``string``
:Default: ``local6``
The syslog facility to use for logging the script output. If set to the empty string, we'll not log through syslog at all. If this configuration option is missing from your config file altogether, the default value will be used (local6), which means that we'll log to syslog.

@ -1,3 +1,14 @@
###################################################################
## Config for /opt/bastion/bin/cron/osh-piv-grace-reaper.pl, the script
## responsible for expiring the grace period of relaxed PIV policies.
## This is a JSON file.
###################################################################
{
"SyslogFacility": "local6"
# > Logging
# >> These options configure the way the script logs its actions
#
# SyslogFacility (string)
# DESC: The syslog facility to use for logging the script output. If set to the empty string, we'll not log through syslog at all. If this configuration option is missing from your config file altogether, the default value will be used (local6), which means that we'll log to syslog.
# DEFAULT: local6
"SyslogFacility": "local6"
}

Loading…
Cancel
Save