Files

12 lines
613 B
Plaintext

# mglpi connection env file (copy to ~/.creds/mglpi.env and chmod 600)
# MGLPI_URL is the FULL API base INCLUDING /apirest.php — e.g.
# https://cmdb.knownelement.com/apirest.php
# (not just the server host). MGLPI_APP_TOKEN and MGLPI_USER_TOKEN are
# required; MGLPI_PROFILE_ID is optional (agent mode: auto-switch to
# this GLPI profile id, e.g. 5 = Hotliner, after InitSession). The file
# must be 0600 or stricter — mglpi refuses looser files before reading.
MGLPI_URL=https://cmdb.knownelement.com/apirest.php
MGLPI_APP_TOKEN=your-glpi-app-token
MGLPI_USER_TOKEN=your-glpi-user-token
MGLPI_PROFILE_ID=0