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

Refactor TimescaleDB setup/configuration #1347

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

eb4x
Copy link
Collaborator

@eb4x eb4x commented Jul 18, 2024

SUMMARY

Just refactor of the timescaledb setup to make configuration more consistent/reliable.

ISSUE TYPE
  • Refactor Pull Request
COMPONENT NAME

zabbix_server

@eb4x
Copy link
Collaborator Author

eb4x commented Jul 18, 2024

I think I got ahead of myself with moving the timescaledb extension task. Will move it back unless the extension can be enabled by less privileged users. In either case, it needs a small modification.

@BGmot BGmot self-requested a review July 18, 2024 17:13
@pyrodie18
Copy link
Collaborator

Is this ready @eb4x

@eb4x eb4x marked this pull request as draft July 19, 2024 07:28
@eb4x
Copy link
Collaborator Author

eb4x commented Jul 19, 2024

Is this ready @eb4x

Nope, sorry about the hold-up. I've converted it to a draft.

@eb4x
Copy link
Collaborator Author

eb4x commented Jul 20, 2024

Management of PostgreSQL extension failed: permission denied to create extension "timescaledb"
HINT: Must have CREATE privilege on current database to create this extension.

So I guess that answers that, I'll revert the create-extension move.

eb4x added 2 commits July 20, 2024 16:58
Query the db to actually see if we've got timescale configured
instead of relying on files.

Use the same task for importing the hypertable schema, and just
conditionally change the path to the schemas.
In the case that timescale has already been enabled, and we're
upgrading from 6.x to 7.x, the auditlog should also get converted.
(Which it was not in the 6.x schemas)
@eb4x eb4x marked this pull request as ready for review July 20, 2024 15:00
@pyrodie18 pyrodie18 merged commit c27b5b5 into ansible-collections:main Jul 22, 2024
50 checks passed
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

Successfully merging this pull request may close these issues.

2 participants