Skip to content

Commit

Permalink
Revert "split package version for OS family"
Browse files Browse the repository at this point in the history
This reverts commits:
-d56f7dfb01b0dd0954f30c1e8f322146dc5e7b37
-15e50806a5971fe4c2b870d0442127214547b91e
  • Loading branch information
poloz-lab committed Feb 10, 2023
1 parent dcb9d90 commit e63bb87
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions manifests/dashboard.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class wazuh::dashboard (
$dashboard_package = 'wazuh-dashboard',
$dashboard_service = 'wazuh-dashboard',
$dashboard_version = '4.3.10',
$dashboard_version = '4.3.10-1',
$indexer_server_ip = 'localhost',
$indexer_server_port = '9200',
$dashboard_path_certs = '/etc/wazuh-dashboard/certs',
Expand Down Expand Up @@ -53,19 +53,9 @@
}
}

# assign version according to the package manager
case $facts['os']['family'] {
'Debian': {
$dashboard_version_install = "${dashboard_version}-*"
}
'Linux', 'RedHat', default: {
$dashboard_version_install = $dashboard_version
}
}

# install package
package { 'wazuh-dashboard':
ensure => $dashboard_version_install,
ensure => $dashboard_version,
name => $dashboard_package,
}

Expand Down

0 comments on commit e63bb87

Please sign in to comment.