Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

QUESTION: Using the puppet_metrics_dashboard::profile::master::postgres_access class #72

Open
@albatrossflavour

Description

@albatrossflavour

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 using include puppet_metrics_dashboard::profile::master::postgres_access via a profile, I get :

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 Function Call, 'versioncmp' parameter 'a' expects a String value, got Undef (file: /opt/puppetlabs/puppet/modules/pe_postgresql/manifests/server/role.pp, line: 66, column: 6) (file: /etc/puppetlabs/code/environments/production/modules/puppet_metrics_dashboard/manifests/profile/master/postgres_access.pp, line: 42) on node master.xxxx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions