Skip to content

Commit

Permalink
adding windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
nate st. germain committed Oct 16, 2019
1 parent 45c8190 commit 380ba09
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
18 changes: 18 additions & 0 deletions manifests/msi.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# == Class: threatstack::msi
#
# Download Threat Stack msi
#
# === Examples
#
# This class is not meant to be directly realized outside of
# Class['::threatstack'].
#
# === Authors
#
# Nate St. Germain <[email protected]>
#
# === Copyright
#
# Copyright 2019 Threat Stack, Inc.
#

10 changes: 8 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
$confdir = '/opt/threatstack/etc'

case $facts['os']['family'] {
'Windows': {
$windows_base_url = 'https://pkg.threatstack.com/v2/Windows'
$ts_package = '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'
$tmpdir = '%TEMP%\\ThreatStack'
}
'RedHat': {
$repo_class = '::threatstack::yum'
$gpg_key = 'https://app.threatstack.com/RPM-GPG-KEY-THREATSTACK'
Expand Down Expand Up @@ -66,6 +74,4 @@
fail("Module ${module_name} does not support ${::operatingsystem}")
}
}


}

0 comments on commit 380ba09

Please sign in to comment.