puppetlabs / influxdb

2 stars 22 forks source link

Check if token file exists on disk #18

Closed m0dular closed 2 years ago

m0dular commented 2 years ago

This commit checks if the admin_token_file exists on disk before reading it in the retrieve_token() function.

puppet-community-rangefinder[bot] commented 2 years ago

influxdb::retrieve_token is a function

that may have no external impact to Forge modules.

This module is declared in 0 of 578 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

m0dular commented 2 years ago

It does, in the sense that it will create a Sensitive[undef] value. That causes the Telegraf override file and the Grafana datasource to use an empty token, which I guess is the expected behavior?

jarretlavallee commented 2 years ago

Sounds good.

m0dular commented 2 years ago

Centos 7 was hung on "Installing PE" for about 40 minutes, so I killed it.