2
0
Fork 0
A role to manage FusionInventory agent installation and configuration
This repository has been archived on 2023-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Christian Iuga 920b73d7ff Add RHEL support
Followed the procedure : http://fusioninventory.org/documentation/agent/installation/linux/rhel.html
- Should possible to add RHEL8 support without huge change
2020-09-30 16:05:10 +02:00
defaults Add RHEL support 2020-09-30 16:05:10 +02:00
handlers Restart agent's service if needed. 2018-09-10 14:55:42 +02:00
meta Add RHEL support 2020-09-30 16:05:10 +02:00
tasks Add RHEL support 2020-09-30 16:05:10 +02:00
templates/etc/fusioninventory Add several configuration variables for agent 2018-09-17 11:28:16 +02:00
tests Install fusioninventory-agent packages and dep 2018-09-10 11:33:08 +02:00
vars Add RHEL support 2020-09-30 16:05:10 +02:00
.travis.yml Install fusioninventory-agent packages and dep 2018-09-10 11:33:08 +02:00
CHANGELOG.md Set empty dependencies line to fix Galaxy warning 2019-02-27 14:12:36 +01:00
README.md Package URL is defined only for Debian Stretch 2019-01-18 11:38:28 +01:00

README.md

FusionInventory

  1. Overview
  2. Role Variables
  3. Example Playbook
  4. Configuration
  5. Development
  6. License
  7. Author Information

Overview

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_depend_packages: List of dependent packages to install.
  • 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_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].
  • fusioninventory__agent_conf_src: Template used to provide agent configuration file [default: ../templates/etc/fusioninventory/agent.cfg.j2].

Example Playbook

  • Use defaults vars:
- hosts: mynode.DOMAIN
  roles:
    - role: ipr-cnrs.fusioninventory
      tags: ['role::fusioninventory', 'ipr', inventory']
  • Install fusioninventory-agent from repository (unavailable in Debian Stretch and by default for all other release):
- hosts: mynode.DOMAIN
  roles:
    - role: ipr-cnrs.fusioninventory
      fusioninventory__agent_package_url: ''
      tags: ['role::fusioninventory', 'ipr', inventory']

Configuration

This role will:

  • Install needed dependent packages of fusioninventory-agent.
  • Once installed, the dependencies will not be removed.
  • Install fusioninventory-agent package from official project package/URL.
  • Generate agent's configuration file.
  • Manage agent's systemd service.

Development

This source code comes from our Gogs instance and the Github repo exist just to be able to send the role to Ansible Galaxy…

But feel free to send issue/PR here :)

Thanks to this hook, Github automatically got updates from our Gogs instance :)

License

WTFPL

Author Information

Jérémy Gardais