Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDO Setup: Import icinga2 schema #3

Open
cstegm opened this issue May 29, 2018 · 1 comment
Open

IDO Setup: Import icinga2 schema #3

cstegm opened this issue May 29, 2018 · 1 comment

Comments

@cstegm
Copy link

cstegm commented May 29, 2018

The Task "Import icinga2 schema" and maybe other mysql related tasks cannot be executed when the mysql users are setup with "REQUIRE SSL"

@TinajaLabs
Copy link

I'm having the same issue:

fatal: [mon]: FAILED! => {"msg": "The conditional check 'table_exists.stdout == ""' failed.

The error was:

error while evaluating conditional (table_exists.stdout == \"\"):
 'dict object' has no attribute 'stdout'\n\n
The error appears to have been in 
../roles/chrnie.icinga2/tasks/feature_ido-mysql.yml': 
line 49, column 3, but maybe elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:\n\n\n- name: Import icinga2 schema\n  ^ here\n"}

Seems it is a problem with
TASK [chrnie.icinga2 : Check IDO schema version in MySQL (no ssl)]

That task is supposed to register a variable, table_exists. There is another task, Check IDO schema version in MySQL (ssl), which is skipped because icinga2_ido_options.ssl_key is defined as false.

I think, if TASK [chrnie.icinga2 : Check IDO schema version in MySQL (ssl)] does not execute, it does not create, or overwrites table_exists.stdout.

I tested this by creating a differently named variable, table_exists_nossl and testing for that one in TASK [chrnie.icinga2 : Import icinga2 schema] and it worked. So need to rework the Import icinga2 schema to work with either of the check schema routines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants