Skip to content
Draft
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: 2 additions & 0 deletions roles/graylog_datanode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ graylog_datanode__password_secret: 'Linuxfabrik_GmbH'
| `graylog_datanode__mongodb_uri` | String. MongoDB connection string. See https://docs.mongodb.com/manual/reference/connection-string/ for details. | `'mongodb://127.0.0.1/graylog'` |
| `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` |
| `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 |
| `graylog_datanode__path_repo` | Filesystem paths where searchable snapshots should be stored. | `[]` |
| `graylog_datanode__service_enabled` | Enables or disables the opensearch service, analogous to ``systemctl enable/disable --now``. | `true` |

Example:
```yaml
Expand Down
3 changes: 2 additions & 1 deletion roles/graylog_datanode/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
graylog_datanode__bind_address: '127.0.0.1'
graylog_datanode__datanode_http_port: 8999
graylog_datanode__mongodb_uri: 'mongodb://127.0.0.1/graylog'
graylog_datanode__opensearch_data_location: '/var/lib/graylog-datanode/opensearch/data'
graylog_datanode__opensearch_heap: '{{ [((ansible_facts["memtotal_mb"] * 0.5) | int), 31744] | min }}m'
graylog_datanode__mongodb_uri: 'mongodb://127.0.0.1/graylog'
graylog_datanode__path_repo: []
graylog_datanode__service_enabled: true

# ------
Expand Down
13 changes: 13 additions & 0 deletions roles/graylog_datanode/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
- block:

- name: 'Validate that graylog_datanode__password_secret length > 16 characters'
ansible.builtin.assert:
that:
- 'graylog_datanode__password_secret | length > 16'
fail_msg: 'graylog_datanode__password_secret must be longer than 16 characters'
quiet: true

tags:
- 'graylog_datanode'
- 'graylog_datanode:configure'

- block:

- name: 'Install graylog-datanode'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ opensearch_logs_location = /var/log/graylog-datanode/opensearch
# indexer_jwt_auth_token_expiration_duration = 180s

opensearch_heap = {{ graylog_datanode__opensearch_heap }}

#### Data Tiering Properties

path_repo = {{ graylog_datanode__path_repo | join(',') }}
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ opensearch_logs_location = /var/log/graylog-datanode/opensearch
# indexer_jwt_auth_token_expiration_duration = 180s

opensearch_heap = {{ graylog_datanode__opensearch_heap }}

#### Data Tiering Properties

path_repo = {{ graylog_datanode__path_repo | join(',') }}
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ opensearch_logs_location = /var/log/graylog-datanode/opensearch
# indexer_jwt_auth_token_expiration_duration = 180s

opensearch_heap = {{ graylog_datanode__opensearch_heap }}

#### Data Tiering Properties

path_repo = {{ graylog_datanode__path_repo | join(',') }}
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ opensearch_logs_location = /var/log/graylog-datanode/opensearch
# indexer_jwt_auth_token_expiration_duration = 180s

opensearch_heap = {{ graylog_datanode__opensearch_heap }}

#### Data Tiering Properties

path_repo = {{ graylog_datanode__path_repo | join(',') }}
13 changes: 13 additions & 0 deletions roles/graylog_server/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
- block:

- name: 'Validate that graylog_server__password_secret length > 16 characters'
ansible.builtin.assert:
that:
- 'graylog_server__password_secret | length > 16'
fail_msg: 'graylog_server__password_secret must be longer than 16 characters'
quiet: true

tags:
- 'graylog_server'
- 'graylog_server:configure'

- block:

- name: 'Install graylog-server'
Expand Down