ansible-roles/generate-ldif
Ludovic Poujol 34a0dae3e6
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2763|3|2760|5|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/230//ansiblelint">Evolix » ansible-roles » unstable #230</a>
gitea/ansible-roles/pipeline/head This commit looks good
generate-ldif: Support for Debian 12
The script required few changes to adapt to the new output of lscpu & usage of lspci

lscpu
- Multiple Vendor ID fields (CPU & Bios) > We keep the first one tied to the CPU info
- No more CPU Speed displayed for virtual machines. We guess the CPU Speed with the CPU Name (Thanks intel puting it in the CPU Name). But that's not going to work with AMD CPUs. An alternative would be to have a peek at /proc/cpu

lspci
- Remove the "0x" prefix as it seems invalid with lscpi version on Debian 12. On older debian, vendor/device id are accepted with or without the "0x" prefix
2023-03-29 11:41:26 +02:00
..
defaults Public role for "generate-ldif" 2017-10-11 13:10:15 +02:00
tasks Use FQCN 2023-03-20 23:33:19 +01:00
templates generate-ldif: Support for Debian 12 2023-03-29 11:41:26 +02:00
README.md Add evolix prefix to include_role 2019-11-29 14:00:25 +01:00

generate-ldif

Install generateldif ; a script for building an ldif file, ready to import into LDAP.

Tasks

The roles install the script, but doesn't run it.

A separate exec.yml task file can be played manually in playbooks or roles to execute the script. Example :

- include_role:
    name: evolix/generate-ldif
    tasks_from: exec.yml

Variables

  • general_scripts_dir : parent directory for the script
  • client_number : client number (default: XXX)
  • monitoring_mode : everytime or worktime (default: everytime)
  • monitoring_type : icmp or nrpe (default: icmp)
  • monitoring_timeout : timeout for nrpe checks, in seconds (default: 10)