Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

stable/graylog Adding the possibility of specifying your own URI for the GeoLite DDBB location #21267

Merged
merged 5 commits into from
Mar 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/graylog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: graylog
home: https://www.graylog.org
version: 1.6.0
version: 1.6.1
appVersion: 3.1
description: Graylog is the centralized log management solution built to open standards for capturing, storing, and enabling real-time analysis of terabytes of machine data.
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/graylog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ The following table lists the configurable parameters of the Graylog chart and t
| `graylog.input` | Graylog Input configuration (YAML) Sees #Input section for detail | `{}` |
| `graylog.metrics.enabled` | If true, add Prometheus annotations to pods | `false` |
| `graylog.geoip.enabled` | If true, Maxmind Geoip Lite will be installed to ${GRAYLOG_HOME}/etc/GeoLite2-City.mmdb | `false` |
| `graylog.geoip.ddbbUri` | If set and geoip enabled, Maxmind Geoip Lite will be installed from the URL you have defined to ${GRAYLOG_HOME}/etc/GeoLite2-City.mmdb | `` |
| `graylog.plugins` | A list of Graylog installation plugins | `[]` |
| `graylog.rootUsername` | Graylog root user name | `admin` |
| `graylog.rootPassword` | Graylog root password. If not set, random 16-character alphanumeric string | `` |
Expand Down
2 changes: 1 addition & 1 deletion stable/graylog/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ data:
{{- end }}
{{- if .Values.graylog.geoip.enabled }}
echo "Downloading Maxmind GeoLite2 ..."
curl -s --location --retry 3 -o /tmp/GeoLite2-City.tar.gz "https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz"
curl -s --location --retry 3 -o /tmp/GeoLite2-City.tar.gz "{{ .Values.graylog.geoip.mmdbUri }}"
curlreturn=$?
if [[ $curlreturn -eq 0 ]]; then
mkdir -p ${GRAYLOG_HOME}/geoip && cd ${GRAYLOG_HOME}/geoip && tar xvzf /tmp/GeoLite2-City.tar.gz --wildcards "*.mmdb" --strip-components=1 -C ${GRAYLOG_HOME}/geoip && chown -R graylog:graylog ${GRAYLOG_HOME}/geoip
Expand Down
3 changes: 3 additions & 0 deletions stable/graylog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ graylog:
## If true, Maxmind GeoLite2 will be installed to ${GRAYLOG_HOME}/geoip location
##
enabled: false
## If true, mmdbUri points to the URI where to find the DB
# https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/
mmdbUri: ""

## Graylog root user name
##
Expand Down