puppetlabs / puppet_operational_dashboards

Apache License 2.0
5 stars 22 forks source link

Unable to use custom grafana port #187

Closed rjd1 closed 9 months ago

rjd1 commented 10 months ago

Describe the Bug

When grafana management is enabled and the port is not using the default value, the service gets stuck in a restart loop.

Expected Behavior

The grafana service should run normally and stay up with a custom port.

Steps to Reproduce

Configure the grafana server to use a different http port and set the value in the dashboards profile class. E.g., include the main puppet_operational_dashboards class and add to hiera:

grafana::cfg:
  server:
    http_port: 8080
puppet_operational_dashboards::profile::dashboards::grafana_port: 8080

Environment

Additional Context

The problem is the default port is hard-coded in templates/grafana_wait.epp. So it isn't seen as listening and systemd just keeps restarting the service.

m0dular commented 9 months ago

Fixed in #188