Skip to content

Commit

Permalink
move that down a bit in the case statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nate st. germain committed Feb 7, 2019
1 parent 252deca commit 12903cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@
$gpg_key = 'https://app.threatstack.com/RPM-GPG-KEY-THREATSTACK'
$gpg_key_file = '/etc/pki/rpm-gpg/RPM-GPG-KEY-THREATSTACK'
$gpg_key_file_uri = "file://${gpg_key_file}"
$disable_auditd = false

case $facts['os']['name'] {
'Amazon': {
$repo_url = 'https://pkg.threatstack.com/v2/Amazon'
$disable_auditd = true
}
/(CentOS|RedHat)/: { $repo_url = "https://pkg.threatstack.com/v2/EL/${::operatingsystemmajrelease}" }
/(CentOS|RedHat)/: {
$repo_url = "https://pkg.threatstack.com/v2/EL/${::operatingsystemmajrelease}"
$disable_auditd = false
}
default: { fail("Module ${module_name} does not support ${::operatingsystem}") }
}
}
Expand Down

0 comments on commit 12903cb

Please sign in to comment.