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.

Enable SSL not working correctly #214

@ajm-ex-dev

Description

@ajm-ex-dev

Describe the Bug

When enabling SSL (use_dashboard_ssl => true) influx tries to connect with (post_start_configs.pp) looking
into the code off post start config I dont see any '-ssl' flag that is required to connect to influxdb

See example below
influx -ssl -unsafeSsl -username admin -password xxxx -execute 'show databases'

Currently all influxdb interactions not using the '-ssl' argument.

Expected Behavior

When using use_dashboard_ssl => true the code should change and use the '-ssl' argument

Steps to Reproduce

Enable SSL
https://forge.puppet.com/modules/puppetlabs/puppet_metrics_dashboard#enable-ssl

Then try to connect with the below command it will fail
#influx -username admin -password xxxx -execute 'show databases'
ERR: Client sent an HTTP request to an HTTPS server.
Client sent an HTTP request to an HTTPS server.

Then try to connect with the below command and it will work.
#influx -ssl -unsafeSsl -username admin -password xxxx -execute 'show databases'
internal
telegraf

Environment

Debian Buster
2.7.0 Forge Module

Additional Context

All interactrions in the below .pp file is not using the '-ssl' argument.
https://raw.githubusercontent.com/puppetlabs/puppet_metrics_dashboard/main/manifests/post_start_configs.pp

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions