From 575004b0929f1e2c1c86b830f55d84d778efe121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 7 Nov 2022 13:28:47 +0100 Subject: [PATCH] Upgrade package from URL to 2.6 Fix #15 --- CHANGELOG.md | 3 +++ README.md | 4 ++-- defaults/main.yml | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59e12d6..5a1bf55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## v1.X.Y +### Enhancement +* Upgrade package version from URL from 2.4 to 2.6 (thanks to @roumano - issue #15). + ### Fix * Switch to Github URL to download deb file (thanks to @roumano - PR #16). * Pipe ansible_managed to `comment` jinja filter to manage multi-lines. diff --git a/README.md b/README.md index 978575d..3d29310 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,11 @@ A role to manage FusionInventory agent installation and configuration. ## Role Variables -* **fusioninventory__agent_version** : The version of Fusioninventory agent to install [default : `2.4-2`]. +* **fusioninventory__agent_version** : The version of Fusioninventory agent to install [default : `2.6-1`]. * **fusioninventory__agent_depend_packages** : List of dependent packages to install. * **fusioninventory__agent_recommend_packages** : List of recommended packages to install. * **fusioninventory__agent_extra_packages** : List of extra packages to install (eg. to allow installation from a .deb file from Ansible). -* **fusioninventory__agent_package_url** : The URL used to download deb package for fusioninventory-agent [default : `http://debian.fusioninventory.org/downloads/fusioninventory-agent_{{ fusioninventory__agent_version }}_all.deb` for Debian Stretch only]. +* **fusioninventory__agent_package_url** : The URL used to download deb package for fusioninventory-agent [default : `"https://github.com/fusioninventory/fusioninventory-agent/releases/download/" + fusioninventory__agent_major_version + "/fusioninventory-agent_" + fusioninventory__agent_version + "_all.deb"` for Debian Stretch only]. * **fusioninventory__agent_deploy_state** : What is the desired state which this role should achieve [default : `present`]. * **fusioninventory__agent_service_name** : The service name to manage [default : `fusioninventory-agent`]. * **fusioninventory__agent_service_manage** : If the fusioninventory agent service should be managed [default : `true`]. diff --git a/defaults/main.yml b/defaults/main.yml index 898f90d..40174da 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -11,8 +11,8 @@ # # The version of Fusioninventory agent to install. # -fusioninventory__agent_version: '2.5.2-1' -fusioninventory__agent_major_version: '2.5.2' +fusioninventory__agent_version: '2.6-1' +fusioninventory__agent_major_version: '2.6' # ]]] # .. envvar:: fusioninventory__agent_package_url [[[ #