TASK [influxdb : add influxdb.conf to /etc/influxdb/] **************************
task path: /workspace/output/ansible/roles/influxdb/tasks/inimage.yml:71
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: ‘enabled’ is undefined. ‘enabled’ is undefined
fatal: [10.0.176.224]: FAILED! => {“changed”: false, “msg”: “AnsibleUndefinedVariable: ‘enabled’ is undefined. ‘enabled’ is undefined”}
Hello @RP1,
Welcome!
Can you please provide some more context?
And config files?
Hi @Anaisdg ,
I’m trying to enabled https on influxdb on redhat centos machine hosted on cloud. I could see http is working fine but https is still not working and it shows error as *
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
- Closing connection 0
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
My https configuration looks like this in influxdb.conf file:
Determines whether HTTP endpoint is enabled.
enabled = true
#enabled = {{ http.enabled }}
Determines whether the Flux query endpoint is enabled.
flux-enabled = false
Determines whether the Flux query logging is enabled.
flux-log-enabled = false
The bind address used by the HTTP service.
bind-address = “:8086”
#bind-address = {{ http.bind_address }}
Determines whether user authentication is enabled over HTTP/HTTPS.
auth-enabled = false
auth-enabled = {{ http.auth_enabled }}
The default realm sent back when issuing a basic auth challenge.
realm = “InfluxDB”
Determines whether HTTP request logging is enabled.
log-enabled = true
Determines whether the HTTP write request logs should be suppressed when the log is enabled.
suppress-write-log = false
When HTTP request logging is enabled, this option specifies the path where
log entries should be written. If unspecified, the default is to write to stderr, which
intermingles HTTP logs with internal InfluxDB logging.
If influxd is unable to access the specified path, it will log an error and fall back to writing
the request log to stderr.
access-log-path = “”
Filters which requests should be logged. Each filter is of the pattern NNN, NNX, or NXX where N is
a number and X is a wildcard for any number. To filter all 5xx responses, use the string 5xx.
If multiple filters are used, then only one has to match. The default is to have no filters which
will cause every request to be printed.
access-log-status-filters =
Determines whether detailed write logging is enabled.
write-tracing = false
Determines whether the pprof endpoint is enabled. This endpoint is used for
troubleshooting and monitoring.
pprof-enabled = true
Enables authentication on pprof endpoints. Users will need admin permissions
to access the pprof endpoints when this setting is enabled. This setting has
no effect if either auth-enabled or pprof-enabled are set to false.
pprof-auth-enabled = false
Enables a pprof endpoint that binds to localhost:6060 immediately on startup.
This is only needed to debug startup issues.
debug-pprof-enabled = false
Enables authentication on the /ping, /metrics, and deprecated /status
endpoints. This setting has no effect if auth-enabled is set to false.
ping-auth-enabled = false
Determines whether HTTPS is enabled.
https-enabled = false
https-enabled = {{ http.https_enabled }}
The SSL certificate to use when HTTPS is enabled.
https-certificate = “/etc/ssl/influxdb.pem”
https-certificate = {{ http.https_certificate_path }}
Use a separate private key location.
https-private-key = “”
https-private-key = {{ http.https_private_key_path }}
