Skip to content

Commit a2dcb75

Browse files
committed
fix(roles/graylog_datanode): extend datanode configuration options to allow __raw configs
1 parent df27a8a commit a2dcb75

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

roles/graylog_datanode/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ graylog_datanode__password_secret: 'Linuxfabrik_GmbH'
7878
* Type: String.
7979
* Default: `'mongodb://127.0.0.1/graylog'`
8080

81+
`graylog_datanode__node_search_cache_size`
82+
83+
* Cache size for searchable snaphots. This space will be automatically reserved if `graylog_datanode__path_repo` is configured. See [docs.opensearch.org - Supported Units](https://docs.opensearch.org/latest/api-reference/units/) for a list of possible options.
84+
* Type: String
85+
* Default: `10gb`
86+
8187
`graylog_datanode__opensearch_data_location`
8288

8389
* Set this OpenSearch folder if you need OpenSearch to be located in a special place.
@@ -96,6 +102,11 @@ graylog_datanode__password_secret: 'Linuxfabrik_GmbH'
96102
* Type: List of Strings
97103
* Default: `[]`
98104

105+
`graylog_datanode__raw`
106+
* Multiline string. Raw content which will be appended to the `datanode.conf` config file.
107+
* Type: String
108+
* Default: unset
109+
99110
`graylog_datanode__service_enabled`
100111

101112
* Enables or disables the graylog-datanode service, analogous to `systemctl enable/disable --now`.

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)