2
0
Fork 0

Manage logger with fusioninventory__agent_conf_log_logger var

This commit is contained in:
Jeremy Gardais 2021-08-27 13:26:36 +02:00
parent f89a1c4cf3
commit 4ec60b99b3
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
4 changed files with 18 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* **tag** with fusioninventory__agent_conf_tag variable * **tag** with fusioninventory__agent_conf_tag variable
* **no-task** with fusioninventory__agent_conf_no_task variable * **no-task** with fusioninventory__agent_conf_no_task variable
* **tasks** with fusioninventory__agent_conf_tasks variable * **tasks** with fusioninventory__agent_conf_tasks variable
* **logger** with fusioninventory__agent_conf_log_logger variable
## v1.3.1 ## v1.3.1

View File

@ -42,6 +42,7 @@ Some variables used to generate FusionInventery agent.cfg file from Ansible temp
* **fusioninventory__agent_conf_httpd_ip**: Interface/IP, the webserver server should listen to [default⎵: ``]. * **fusioninventory__agent_conf_httpd_ip**: Interface/IP, the webserver server should listen to [default⎵: ``].
* **fusioninventory__agent_conf_httpd_port**: TCP port used by the webserver server to listen [default⎵: `62354`]. * **fusioninventory__agent_conf_httpd_port**: TCP port used by the webserver server to listen [default⎵: `62354`].
* **fusioninventory__agent_conf_httpd_trust**: hostname or IP or subnet authorized for http request [default⎵: ``]. * **fusioninventory__agent_conf_httpd_trust**: hostname or IP or subnet authorized for http request [default⎵: ``].
* **fusioninventory__agent_conf_log_logger**: Specifies the logger backend to use [default⎵: `syslog`].
* **fusioninventory__agent_conf_tag**: Add given tag to inventory results [default⎵: ``]. * **fusioninventory__agent_conf_tag**: Add given tag to inventory results [default⎵: ``].
* **fusioninventory__agent_conf_debug**: If debug mode should be enabled [default⎵: `False`]. * **fusioninventory__agent_conf_debug**: If debug mode should be enabled [default⎵: `False`].

View File

@ -207,6 +207,21 @@ fusioninventory__agent_conf_httpd_port: '62354'
# #
fusioninventory__agent_conf_httpd_trust: '' fusioninventory__agent_conf_httpd_trust: ''
# ]]] # ]]]
# .. envvar:: fusioninventory__agent_conf_log_logger: [[[
#
# Specifies the logger backend to use. The possible values are:
#
# ``syslog``
# Default. Log messages through the local syslog server.
#
# ``file``
# Log messages in a file.
#
# ``stderr``
# Log messages directly in the console.
#
fusioninventory__agent_conf_log_logger: 'syslog'
# ]]]
# .. envvar:: fusioninventory__agent_conf_tag [[[ # .. envvar:: fusioninventory__agent_conf_tag [[[
# #
# Add given tag to inventory results # Add given tag to inventory results

View File

@ -132,7 +132,7 @@ httpd-trust = {{ fusioninventory__agent_conf_httpd_trust }}
# #
# Logger backend, either Stderr, File or Syslog (Stderr) # Logger backend, either Stderr, File or Syslog (Stderr)
logger = syslog logger = {{ fusioninventory__agent_conf_log_logger }}
# log file # log file
#logfile = /var/log/fusioninventory.log #logfile = /var/log/fusioninventory.log
# maximum log file size, in MB # maximum log file size, in MB