2018-09-10 14:02:41 +02:00
|
|
|
# {{ ansible_managed }}
|
2021-08-27 15:52:30 +02:00
|
|
|
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
2018-09-10 14:02:41 +02:00
|
|
|
|
|
|
|
# fusioninventory agent configuration
|
|
|
|
|
|
|
|
# all commented values are examples
|
|
|
|
|
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# Target definition options [[[
|
2018-09-10 14:02:41 +02:00
|
|
|
# send tasks results to an OCS server
|
|
|
|
#server = http://server.domain.com/ocsinventory
|
|
|
|
# send tasks results to a FusionInventory for GLPI server
|
|
|
|
#server = http://server.domain.com/glpi/plugins/fusioninventory/
|
2018-09-17 11:28:16 +02:00
|
|
|
{% if fusioninventory__agent_conf_server_url %}
|
|
|
|
server = {{ fusioninventory__agent_conf_server_url }}
|
|
|
|
{% endif %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# write tasks results in a directory
|
|
|
|
#local = /tmp
|
2018-09-17 11:28:16 +02:00
|
|
|
{% if fusioninventory__agent_conf_local_dir %}
|
|
|
|
local = {{ fusioninventory__agent_conf_local_dir }}
|
|
|
|
{% endif %}
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# ]]]
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# Task definition options [[[
|
2018-09-10 14:02:41 +02:00
|
|
|
# disable software deployment tasks
|
|
|
|
#no-task = deploy
|
2021-08-26 16:07:44 +02:00
|
|
|
{% if fusioninventory__agent_conf_no_task %}
|
|
|
|
no-task = {{ fusioninventory__agent_conf_no_task }}
|
|
|
|
{% endif %}
|
2018-09-10 14:02:41 +02:00
|
|
|
#tasks = inventory,deploy,inventory
|
2021-08-27 13:12:25 +02:00
|
|
|
{% if fusioninventory__agent_conf_tasks %}
|
|
|
|
tasks = {{ fusioninventory__agent_conf_tasks }}
|
|
|
|
{% endif %}
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# ]]]
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# Target scheduling options [[[
|
2018-09-10 14:02:41 +02:00
|
|
|
# maximum delay before first target, in seconds
|
2018-09-17 11:28:16 +02:00
|
|
|
delaytime = {{ fusioninventory__agent_conf_delaytime }}
|
2018-09-10 14:02:41 +02:00
|
|
|
# do not contact the target before next scheduled time
|
|
|
|
lazy = 0
|
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# ]]]
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# Inventory task specific options [[[
|
2018-09-10 14:02:41 +02:00
|
|
|
# do not list local printers
|
|
|
|
# no-category = printer
|
2018-09-17 11:28:16 +02:00
|
|
|
{% if fusioninventory__agent_conf_no_category %}
|
|
|
|
no-category = {{ fusioninventory__agent_conf_no_category }}
|
|
|
|
{% endif %}
|
|
|
|
{% if fusioninventory__agent_conf_scan_homedirs %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# allow to scan user home directories
|
2018-09-17 11:28:16 +02:00
|
|
|
scan-homedirs = 1
|
|
|
|
{% else %}
|
|
|
|
# disable scan of user home directories
|
2018-09-10 14:02:41 +02:00
|
|
|
scan-homedirs = 0
|
2018-09-17 11:28:16 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if fusioninventory__agent_conf_scan_profiles %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# allow to scan user profiles
|
2018-09-17 11:28:16 +02:00
|
|
|
scan-profiles = 1
|
|
|
|
{% else %}
|
|
|
|
# disable the scan of user profiles
|
2018-09-10 14:02:41 +02:00
|
|
|
scan-profiles = 0
|
2018-09-17 11:28:16 +02:00
|
|
|
{% endif %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# save the inventory as HTML
|
|
|
|
html = 0
|
|
|
|
# timeout for inventory modules execution
|
|
|
|
backend-collect-timeout = 180
|
|
|
|
# always send data to server
|
|
|
|
force = 0
|
|
|
|
# additional inventory content file
|
|
|
|
additional-content =
|
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# ]]]
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# Package deployment task specific options [[[
|
2018-09-10 14:02:41 +02:00
|
|
|
# do not use peer to peer to download files
|
|
|
|
no-p2p = 0
|
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# ]]]
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# Network options [[[
|
2018-09-10 14:02:41 +02:00
|
|
|
# proxy address
|
|
|
|
proxy =
|
|
|
|
# user name for server authentication
|
|
|
|
user =
|
|
|
|
# password for server authentication
|
|
|
|
password =
|
|
|
|
# CA certificates directory
|
|
|
|
ca-cert-dir =
|
|
|
|
# CA certificates file
|
|
|
|
ca-cert-file =
|
2018-09-17 11:28:16 +02:00
|
|
|
{% if fusioninventory__agent_conf_no_ssl_check %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# do not check server SSL certificate
|
2018-09-17 11:28:16 +02:00
|
|
|
no-ssl-check = 1
|
|
|
|
{% else %}
|
|
|
|
# check server SSL certificate
|
2018-09-10 14:02:41 +02:00
|
|
|
no-ssl-check = 0
|
2018-09-17 11:28:16 +02:00
|
|
|
{% endif %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# connection timeout, in seconds
|
|
|
|
timeout = 180
|
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# ]]]
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# Web interface options [[[
|
2018-09-17 11:28:16 +02:00
|
|
|
{% if fusioninventory__agent_conf_no_httpd %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# disable embedded web server
|
2018-09-17 11:28:16 +02:00
|
|
|
no-httpd = 1
|
|
|
|
{% else %}
|
|
|
|
# enable embedded web server
|
2018-09-10 14:02:41 +02:00
|
|
|
no-httpd = 0
|
2018-09-17 11:28:16 +02:00
|
|
|
{% endif %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# network interface to listen to
|
2018-09-17 11:28:16 +02:00
|
|
|
httpd-ip = {{ fusioninventory__agent_conf_httpd_ip }}
|
2018-09-10 14:02:41 +02:00
|
|
|
# network port to listen to
|
2018-09-17 11:28:16 +02:00
|
|
|
httpd-port = {{ fusioninventory__agent_conf_httpd_port }}
|
2018-09-10 14:02:41 +02:00
|
|
|
# trust requests without authentication token
|
2020-01-23 11:57:34 +01:00
|
|
|
httpd-trust = {{ fusioninventory__agent_conf_httpd_trust }}
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# ]]]
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# Logging options [[[
|
2018-09-10 14:02:41 +02:00
|
|
|
# Logger backend, either Stderr, File or Syslog (Stderr)
|
2021-08-27 13:26:36 +02:00
|
|
|
logger = {{ fusioninventory__agent_conf_log_logger }}
|
2021-08-27 15:17:46 +02:00
|
|
|
{% if fusioninventory__agent_conf_log_logger == 'file' %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# log file
|
2021-08-27 15:17:46 +02:00
|
|
|
logfile = {{ fusioninventory__agent_conf_log_file }}
|
2018-09-10 14:02:41 +02:00
|
|
|
# maximum log file size, in MB
|
2021-08-27 15:17:46 +02:00
|
|
|
logfile-maxsize = {{ fusioninventory__agent_conf_log_file_maxsize }}
|
|
|
|
{% endif %}
|
2021-08-27 13:42:43 +02:00
|
|
|
{% if fusioninventory__agent_conf_log_logger == 'syslog' %}
|
2018-09-10 14:02:41 +02:00
|
|
|
# Syslog facility
|
2021-08-27 13:42:43 +02:00
|
|
|
logfacility = {{ fusioninventory__agent_conf_log_facility }}
|
|
|
|
{% endif %}
|
2021-08-27 15:52:30 +02:00
|
|
|
{% if fusioninventory__agent_conf_log_color %}
|
|
|
|
# Use color in the console with stderr backend
|
|
|
|
color = 1
|
|
|
|
{% else %}
|
|
|
|
# Don't use color in the console with stderr backend
|
2018-09-10 14:02:41 +02:00
|
|
|
color = 0
|
2021-08-27 15:52:30 +02:00
|
|
|
{% endif %}
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# ]]]
|
2018-09-10 14:02:41 +02:00
|
|
|
|
2021-08-27 15:52:30 +02:00
|
|
|
# Execution mode options [[[
|
2018-09-10 14:02:41 +02:00
|
|
|
# add given tag to inventory results
|
2021-08-26 15:58:17 +02:00
|
|
|
tag = {{ fusioninventory__agent_conf_tag }}
|
2018-09-17 11:28:16 +02:00
|
|
|
{% if fusioninventory__agent_conf_debug %}
|
|
|
|
# enable debug mode
|
|
|
|
debug = 1
|
|
|
|
{% else %}
|
|
|
|
# disable debug mode
|
2018-09-10 14:02:41 +02:00
|
|
|
debug = 0
|
2018-09-17 11:28:16 +02:00
|
|
|
{% endif %}
|
2018-09-10 14:02:41 +02:00
|
|
|
|
|
|
|
# time to wait to reload config (0 means no reload, it's default value)
|
2021-08-27 15:52:30 +02:00
|
|
|
# conf-reload-interval = 0
|
|
|
|
|
|
|
|
# ]]]
|
2018-09-10 14:02:41 +02:00
|
|
|
|
|
|
|
# Since 2.4, you can include all .cfg files from a folder or any given file
|
|
|
|
# For example:
|
|
|
|
# 1. file "conf.d/tag.cfg" contains "tag = 'entity123'"
|
|
|
|
# using "include 'conf.d' will set tag to 'entity123'
|
|
|
|
# 2. file "/etc/production/glpi-tag" contains "tag = 'entity123'"
|
|
|
|
# using "include '/etc/production/glpi-tag' will set tag to 'entity123'
|
|
|
|
# Remark:
|
|
|
|
# 1. Prefer to use full path to avoid confusion, but be aware relative paths are
|
|
|
|
# relative against current config file folder
|
|
|
|
# 2. A parameter set in included file can be over-rided if set again after the directive
|
|
|
|
# 3. *.cfg files are read in order in folder, it's better to prefix them with a number
|
|
|
|
# 4. Package maintainers are encouraged to use this feature to avoid conflict
|
|
|
|
# during upgrades after configuration update
|
|
|
|
#
|
|
|
|
include "conf.d/"
|
|
|
|
#include "agent.local"
|