Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from humio/grant/ephemeral-check
Browse files Browse the repository at this point in the history
add ephemeral check, will not set bootstrap_host_id if set
  • Loading branch information
schofield authored Feb 7, 2020
2 parents d85b842 + e617668 commit 0d33841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ humio_socket_bind: "0.0.0.0"
humio_http_bind: "0.0.0.0"
humio_data_path: "/var/humio"

#check for ephermal setting, will force bootstrap id not to be written
humio_ephemeral: false

# This exists for specific situations where someone may have different
# base locations for each Humio process running on the system. Under
# most conditions this can be left at the defaults where it simply mirrors
Expand Down
3 changes: 3 additions & 0 deletions templates/server.conf.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#jinja2: trim_blocks:False
{%- if humio_ephemeral %}
{%- else %}
BOOTSTRAP_HOST_ID={{ "%d%02d" | format(humio_host_id|int, item) }}
{%- endif %}
DIRECTORY={{ humio_data_paths[item|string] }}/{{ humio_host_id }}-{{ item }}/data
{%- if humio_data_secondary_path %}
PRIMARY_STORAGE_PERCENTAGE={{ humio_data_percentage }}
Expand Down

0 comments on commit 0d33841

Please sign in to comment.