Skip to content

Commit

Permalink
Fix dependencies
Browse files Browse the repository at this point in the history
files_lines resources need the configuration file from the package.
  • Loading branch information
poloz-lab committed Aug 3, 2022
1 parent d8426a7 commit c1f059e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions manifests/dashboard.pp
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,18 @@

# TODO: Fully manage the opensearch_dashboards.yml and a template file resource
file_line { 'Setting host for wazuh-dashboard':
path => '/etc/wazuh-dashboard/opensearch_dashboards.yml',
line => "server.host: ${dashboard_server_host}",
match => "^server.host:\s",
notify => Service['wazuh-dashboard'],
path => '/etc/wazuh-dashboard/opensearch_dashboards.yml',
line => "server.host: ${dashboard_server_host}",
match => "^server.host:\s",
require => Package['wazuh-dashboard'],
notify => Service['wazuh-dashboard'],
}
file_line { 'Setting port for wazuh-dashboard':
path => '/etc/wazuh-dashboard/opensearch_dashboards.yml',
line => "server.port: ${dashboard_server_port}",
match => "^server.port:\s",
notify => Service['wazuh-dashboard'],
path => '/etc/wazuh-dashboard/opensearch_dashboards.yml',
line => "server.port: ${dashboard_server_port}",
match => "^server.port:\s",
require => Package['wazuh-dashboard'],
notify => Service['wazuh-dashboard'],
}

service { 'wazuh-dashboard':
Expand Down

0 comments on commit c1f059e

Please sign in to comment.