Icinga / ansible-collection-icinga

Collection to setup and manage components of the Icinga software stack
Apache License 2.0
43 stars 35 forks source link

Import of x509 database MySQL schema fails #303

Closed Donien closed 1 month ago

Donien commented 2 months ago

When trying to import the MySQL database schema for the x509 module as laid out by the docs, the import fails due to the wrong variable name being referenced (schema_path instead of schema_path_mysql).

Reproduce

Snippet:

vars:
  ...
  icingaweb2_modules:
    x509:
      source: package
      enabled: true
      config:
        backend:
          resource: "x509_db"
      database:
        import_schema: true
        type: mysql
        user: "x509"
        password: "pwd"

Side note:
The role also fails at a ansible.builtin.fail task (if missing a needed variable). But ironically it fails due to the wrong module argument being passed (fail_msg instead of msg).
Thus the intended fail message is never seen.