Skip to content

Commit

Permalink
Fixe wazuh#1072 : set cn indexer prefix as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mzaghab-vp committed Jul 23, 2024
1 parent 97f4abf commit 77e20a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/indexer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
$indexer_network_host = '0.0.0.0',
$indexer_cluster_name = 'wazuh-cluster',
$indexer_node_name = 'node-1',
$indexer_node_prefix = 'indexer-',
$indexer_node_max_local_storage_nodes = '1',
$indexer_service = 'wazuh-indexer',
$indexer_package = 'wazuh-indexer',
Expand Down
2 changes: 1 addition & 1 deletion templates/wazuh_indexer_yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.nodes_dn:
<% @indexer_cluster_CN.each do |cn| -%>
- "CN=indexer-<%= cn %>,OU=Wazuh,O=Wazuh,L=California,C=US"
- "CN=<%= @indexer_node_prefix %><%= cn %>,OU=Wazuh,O=Wazuh,L=California,C=US"
<% end -%>
plugins.security.restapi.roles_enabled:
- "all_access"
Expand Down

0 comments on commit 77e20a1

Please sign in to comment.