-
Notifications
You must be signed in to change notification settings - Fork 40
QUESTION: Using the puppet_metrics_dashboard::profile::master::postgres_access class #72
Comments
Thanks for reporting this! I've actually seen this before, and wrote it off as something environmental. I can point you to the workaround that was used in that case (this doesn't run idempotently though). I don't know enough about the magic of the ENC to know why this happens, but it's clear that the resources are ordered differently when using the ENC. The error comes from the In any case, this is a real issue and I'd love to see it fixed. |
Why does this module rely on pe_postgresql instead of just regular postgresql? |
pe_postgresql is already managing resources via the puppet_enterprise classes. Won't also using regular postgresql cause conflicts with those resources? |
You should be able to use regular postgres you'll just have to set parameters on the defined types to match what is done in PE. |
I'll take a look at that, but for now I have an idempotent (after two runs unfortunately) workaround:
node_group { 'puppetmaster-dashboard':
# lint:ignore:arrow_alignment
ensure => 'present',
classes => {'puppet_metrics_dashboard::profile::master::postgres_access' => { }},
description => 'Puppetmaster Dashboard workaround group',
environment => 'production',
override_environment => false,
parent => 'All Nodes',
rule => ['or', ['=', 'name', $facts['puppet_master_server']]],
# lint:endignore
}
|
Just talking to @boltKrank about this, we think it might be a 2019.1.0 issue. Just testing it now, but worth considering. |
I just tried to install module on 2019.7 and I think I stumbled on related problem:
|
The fix for this will be to convert the profile to use https://forge.puppet.com/puppetlabs/postgresql. |
I tried to use https://forge.puppet.com/modules/puppetlabs/postgresql for the workaround, after added class Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Exec[postgresql_reload] is already declared at (file: /etc/puppetlabs/code/environments/production/modules/postgresql/manifests/server/reload.pp, line: 7); cannot redeclare (file: /opt/puppetlabs/puppet/modules/pe_postgresql/manifests/server/reload.pp, line: 8) (file: /opt/puppetlabs/puppet/modules/pe_postgresql/manifests/server/reload.pp, line: 8, column: 5) on node mom.platform9.puppet.net So we need to go back to the original issue and fix it from there. Thank you. |
Apologies for raising and "issue" on this, but I've been battling with this all day and can't get my head around what is happening.
if I declare
puppet_metrics_dashboard::profile::master::postgres_access
via the ENC (PE console), everything works as expected. If I declare it usinginclude puppet_metrics_dashboard::profile::master::postgres_access
via a profile, I get :I can't figure out why declaring via the ENC would mean this works. I've gone through the code and it seems to be borking on
$version
being undef, but why that would happen using a profile rather than the ENC is what is frustrating me.The issue was the same on on 2.2.1 as on 1.1.5 (discounting the change in class name).
I'm sure I'm missing something obvious. I'm going to keep looking but thought someone might have an idea as to what's going on.
The text was updated successfully, but these errors were encountered: