Mentions légales du service

Skip to content

Lightweight alternative to the script on NixOS

MOY Matthieu requested to merge mmoy/glpi-agent-at-lip:nixos into main

I don't quite understand why the .cfg file isn't just named agent.cfg. Does it have anything MacOS-specific? To make the change minimal, I just symlinked the MacOS .cfg file to agent.cfg, and then the script to run the agent becomes a one-liner, documented in README.md. It may make sense to either just rename the MacOS .cfg file, or duplicate it if it has anything Linux-specific.

I can't guarantee that everything did work, but at least I get this output which doesn't seem to contain any error:

$ nix-shell -p glpi-agent --run 'sudo glpi-agent --full'
[info] target server0: server https://assistance.ens-lyon.fr/plugins/glpiinventory/
[info] sending contact request to server0
[info] sending prolog request to server0
[info] running task Inventory
[info] New inventory from nixos-2025-09-24-21-38-41 for server0 (tag=LIP)
[info] running task Collect
[info] No Collect job enabled or Collect support disabled server side.
[info] running task Deploy
[info] No Deploy job enabled or Deploy support disabled server side.
[info] running task ESX
[info] No ESX job enabled or ESX support disabled server side.

Merge request reports

Loading