-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/windows'
- Loading branch information
Showing
11 changed files
with
179 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
threatstack::params: | ||
repo_class: '::threatstack::msi' | ||
gpg_key: undef | ||
disable_auditd: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ | |
# Arguments to be passed to `tsagent setup` | ||
# type: array | ||
# | ||
# [*binpath*] | ||
# Used to set bin path for exec in the config class | ||
# type: Array | ||
# | ||
# [*disable_auditd*] | ||
# Required to work around issues with auditd on some distros | ||
# type: bool | ||
|
@@ -16,6 +20,10 @@ | |
# Systemd vs. SysV init, related to above | ||
# type: string | ||
# | ||
# [*enable_sysmon*] | ||
# Windows: optionally enable sysmon (not used yet) | ||
# type: bool | ||
# | ||
# [*extra_args*] | ||
# Extra arguments to pass on the command line during agent activation. | ||
# type: array of hashes | ||
|
@@ -54,10 +62,30 @@ | |
# Ruleset(s) to apply to host. | ||
# type: array | ||
# | ||
# [*setup_unless*] | ||
# Used in the setup exec in the configure class | ||
# type: String | ||
# | ||
# [*tmpdir*] | ||
# Used to download Windows agent MSI | ||
# type: string | ||
# | ||
# [*ts_hostname*] | ||
# Hostname as reported to Threat Stack. | ||
# type: string | ||
# | ||
# [*windows_download_url*] | ||
# Windows MSI download url | ||
# type: string | ||
# | ||
# [*windows_install_options*] | ||
# Windows MSI install options | ||
# type: array | ||
# | ||
# [*windows_ts_package*] | ||
# Windows MSI package name | ||
# type: string | ||
# | ||
# === Examples | ||
# | ||
# Standard usage: | ||
|
@@ -78,25 +106,32 @@ | |
# | ||
# Pete Cheslock <[email protected]> | ||
# Tom McLaughlin <[email protected]> | ||
# Nate St. Germain <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright 2016 Threat Stack, Inc. | ||
# Copyright 2019 Threat Stack, Inc. | ||
# | ||
class threatstack ( | ||
$deploy_key = undef, | ||
$package_version = $::threatstack::params::package_version, | ||
$configure_agent = true, | ||
$extra_args = $::threatstack::params::extra_args, | ||
$agent_config_args = undef, | ||
$repo_class = $::threatstack::params::repo_class, | ||
$repo_url = $::threatstack::params::repo_url, | ||
$gpg_key = $::threatstack::params::gpg_key, | ||
$rulesets = $::threatstack::params::rulesets, | ||
$confdir = $::threatstack::params::confdir, | ||
$ts_hostname = $::fqdn, | ||
$disable_auditd = $::threatstack::params::disable_auditd, | ||
$disable_auditd_cmd = $::threatstack::params::disable_auditd_cmd | ||
$deploy_key = undef, | ||
$package_version = $::threatstack::params::package_version, | ||
$configure_agent = true, | ||
$extra_args = $::threatstack::params::extra_args, | ||
$agent_config_args = undef, | ||
$repo_class = $::threatstack::params::repo_class, | ||
$repo_url = $::threatstack::params::repo_url, | ||
$gpg_key = $::threatstack::params::gpg_key, | ||
$rulesets = $::threatstack::params::rulesets, | ||
$confdir = $::threatstack::params::confdir, | ||
$ts_hostname = $::fqdn, | ||
$disable_auditd = $::threatstack::params::disable_auditd, | ||
$disable_auditd_cmd = $::threatstack::params::disable_auditd_cmd, | ||
$binpath = $::threatstack::params::binpath, | ||
$setup_unless = $::threatstack::params::setup_unless, | ||
$windows_download_url = $::threatstack::params::download_url, | ||
$windows_tmp_path = $::threatstack::params::tmp_path, | ||
$windows_install_options = concat(["TSDEPLOYKEY=${deploy_key}"],$::threatstack::params::windows_install_options) | ||
|
||
) inherits ::threatstack::params { | ||
|
||
$ts_package = $::threatstack::params::ts_package | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# == Class: threatstack::msi | ||
# | ||
# Download Threat Stack msi | ||
# | ||
# === Examples | ||
# | ||
# This class is not meant to be directly realized outside of | ||
# Class['::threatstack']. | ||
# | ||
# This is sort of a dummy class but might be used at some point. | ||
# | ||
# === Authors | ||
# | ||
# Nate St. Germain <[email protected]> | ||
# | ||
# === Copyright | ||
# | ||
# Copyright 2019 Threat Stack, Inc. | ||
# | ||
class threatstack::msi inherits ::threatstack::params { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,3 @@ | |
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters