From 8da0ec497f103489d0b12bb6195dfbc7857b51f3 Mon Sep 17 00:00:00 2001 From: Jurgen Mehja Date: Fri, 24 May 2024 15:28:12 +0200 Subject: [PATCH] added run_as variable --- manifests/dashboard.pp | 2 ++ templates/wazuh_yml.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/dashboard.pp b/manifests/dashboard.pp index 286ca942..82ba3330 100644 --- a/manifests/dashboard.pp +++ b/manifests/dashboard.pp @@ -10,6 +10,7 @@ $dashboard_path_certs = '/etc/wazuh-dashboard/certs', $dashboard_fileuser = 'wazuh-dashboard', $dashboard_filegroup = 'wazuh-dashboard', + $dashboard_run_as = false, $dashboard_server_port = '443', $dashboard_server_host = '0.0.0.0', @@ -28,6 +29,7 @@ 'port' => '55000', 'user' => 'wazuh-wui', 'password' => 'wazuh-wui', + 'run_as' => $dashboard_run_as, }, ], diff --git a/templates/wazuh_yml.erb b/templates/wazuh_yml.erb index dbf47ccf..1812170e 100644 --- a/templates/wazuh_yml.erb +++ b/templates/wazuh_yml.erb @@ -240,5 +240,5 @@ hosts: port: <%= api_profile['port'] %> username: <%= api_profile['user'] %> password: <%= api_profile['password'] %> - run_as: false + run_as: <%= api_profile['run_as'] %> <% end -%>