Skip to content

Commit 7009d9e

Browse files
committed
fix(roles/graylog_datanode): extend datanode configuration options to allow __raw configs
1 parent 3c8883f commit 7009d9e

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

roles/graylog_datanode/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ graylog_datanode__password_secret: 'Linuxfabrik_GmbH'
5858
| `graylog_datanode__opensearch_data_location` | String. Set this OpenSearch folder if you need OpenSearch to be located in a special place. | `/var/lib/graylog-datanode/opensearch/data` |
5959
| `graylog_datanode__opensearch_heap` | String. Ensure the heap settings are set to half your system memory, up to a max of 31 GB. | 50% of system memory, e.g. 8g |
6060
| `graylog_datanode__path_repo` | Filesystem paths where searchable snapshots should be stored. | `[]` |
61+
| `graylog_datanode__raw` | Multiline string. Raw content which will be appended to the `datanode.conf` config file. | unset |
6162
| `graylog_datanode__service_enabled` | Enables or disables the opensearch service, analogous to ``systemctl enable/disable --now``. | `true` |
6263

6364
Example:

roles/graylog_datanode/templates/etc/graylog/datanode/6.1-datanode.conf.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,8 @@ opensearch_heap = {{ graylog_datanode__opensearch_heap }}
168168

169169
node_search_cache_size = {{ graylog_datanode__node_search_cache_size }}
170170
path_repo = {{ graylog_datanode__path_repo | join(',') }}
171+
172+
{% if graylog_datanode__raw is defined and graylog_datanode__raw | length %}
173+
#### Raw ####
174+
{{ graylog_datanode__raw }}
175+
{% endif %}

roles/graylog_datanode/templates/etc/graylog/datanode/6.2-datanode.conf.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,8 @@ opensearch_heap = {{ graylog_datanode__opensearch_heap }}
168168

169169
node_search_cache_size = {{ graylog_datanode__node_search_cache_size }}
170170
path_repo = {{ graylog_datanode__path_repo | join(',') }}
171+
172+
{% if graylog_datanode__raw is defined and graylog_datanode__raw | length %}
173+
#### Raw ####
174+
{{ graylog_datanode__raw }}
175+
{% endif %}

roles/graylog_datanode/templates/etc/graylog/datanode/6.3-datanode.conf.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,8 @@ opensearch_heap = {{ graylog_datanode__opensearch_heap }}
168168

169169
node_search_cache_size = {{ graylog_datanode__node_search_cache_size }}
170170
path_repo = {{ graylog_datanode__path_repo | join(',') }}
171+
172+
{% if graylog_datanode__raw is defined and graylog_datanode__raw | length %}
173+
#### Raw ####
174+
{{ graylog_datanode__raw }}
175+
{% endif %}

roles/graylog_datanode/templates/etc/graylog/datanode/7.0-datanode.conf.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,8 @@ opensearch_heap = {{ graylog_datanode__opensearch_heap }}
168168

169169
node_search_cache_size = {{ graylog_datanode__node_search_cache_size }}
170170
path_repo = {{ graylog_datanode__path_repo | join(',') }}
171+
172+
{% if graylog_datanode__raw is defined and graylog_datanode__raw | length %}
173+
#### Raw ####
174+
{{ graylog_datanode__raw }}
175+
{% endif %}

0 commit comments

Comments
 (0)