From d74329160caae2e13f4b92b27ebe60d5d8097beb Mon Sep 17 00:00:00 2001 From: ciuga Date: Thu, 23 Jan 2020 11:57:34 +0100 Subject: [PATCH] Add variable fusioninventory__agent_conf_httpd_trust --- CHANGELOG.md | 5 +++++ defaults/main.yml | 9 +++++++++ templates/etc/fusioninventory/agent.cfg.j2 | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea83a61..2c2431e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## vX.Y.Z + +### Fix +* Fix Manage trust requests without authentication token (#1) + ## v1.0.2 ### Fix diff --git a/defaults/main.yml b/defaults/main.yml index 422a1f0..973779f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -195,6 +195,15 @@ fusioninventory__agent_conf_httpd_ip: '' # fusioninventory__agent_conf_httpd_port: '62354' + # ]]] +# .. envvar:: fusioninventory__agent_conf_httpd_trust: [[[ +# +# hostname or IP or subnet authorized for http request : +# +# ```` +# Default. +# +fusioninventory__agent_conf_httpd_trust: '' # ]]] # .. envvar:: fusioninventory__agent_conf_debug [[[ # diff --git a/templates/etc/fusioninventory/agent.cfg.j2 b/templates/etc/fusioninventory/agent.cfg.j2 index 4f49ead..27178cd 100644 --- a/templates/etc/fusioninventory/agent.cfg.j2 +++ b/templates/etc/fusioninventory/agent.cfg.j2 @@ -119,7 +119,7 @@ httpd-ip = {{ fusioninventory__agent_conf_httpd_ip }} # network port to listen to httpd-port = {{ fusioninventory__agent_conf_httpd_port }} # trust requests without authentication token -httpd-trust = +httpd-trust = {{ fusioninventory__agent_conf_httpd_trust }} # # Logging options