Skip to content

Smoother influx CLI intergration #73

@SimonHoenscheid

Description

@SimonHoenscheid

Use Case

The InfluxDB Module creates a SSL encrypted setup by default, which is great. But this seup creates two pitfalls with the influx CLI:

  1. The CLI needs additional parameters to be able to establish a connection. This can be solved with an influx CLI config

influx config create --config-name default --host-url https://$(facter networking.fqdn):8086 --org puppetlabs --token $(cat /root/.influxdb_token) --active

  1. Even with this config the connection will not work, because the CA is "self -signed" and not trusted
influx org list
 Error: failed to list orgs: Get "https://****:8086/api/v2/orgs": x509: certificate signed by unknown authority

AFAIK there is no parameter to allow the CA, but it helps to import it to the system store.
Maybe it helps to announce the full chain to InfluxDB.

Describe the Solution You Would Like

The module creates a CLI config and imports the puppet CA to the system store

Describe Alternatives You've Considered

Add this information to various readme files

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions