Skip to content

Commit

Permalink
don't reassign variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nate st. germain committed Oct 16, 2019
1 parent 3edd43c commit 8936878
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@
#

class threatstack::params {
$ts_package = 'threatstack-agent'
$ts_service = 'threatstack'
$ts_package = $facts['os']['family'] ? {
'Windows' => 'Threat Stack Agent'
default => 'threatstack-agent'
}

$ts_service = $facts['os']['family'] ? {
'Windows' => 'Threat Stack Agent',
default => 'threatstack'
}

$package_version = 'installed'
$rulesets = ['Base Rule Set']
$extra_args = undef
Expand All @@ -28,12 +36,9 @@

case $facts['os']['family'] {
'Windows': {
$ts_service = 'Threat Stack Agent'
$ts_package = 'Threat Stack Agent'
$windows_base_url = 'https://pkg.threatstack.com/v2/Windows'
$windows_pkg_name = 'Threat+Stack+Cloud+Security+Agent.latest.msi'
$download_url = "${windows_base_url}/${windows_pkg_name}"
$rulesets = ['Windows Rule Set']
$progdir = 'C:\\Program Files\\Threat Stack'
$windows_opts = ["TSDEPLOYKEY=${::threatstack::deploy_key}"]

Expand Down

0 comments on commit 8936878

Please sign in to comment.