|
8 | 8 | # Arguments to be passed to `tsagent setup` |
9 | 9 | # type: array |
10 | 10 | # |
| 11 | +# [*binpath*] |
| 12 | +# Used to set bin path for exec in the config class |
| 13 | +# type: Array |
| 14 | +# |
11 | 15 | # [*disable_auditd*] |
12 | 16 | # Required to work around issues with auditd on some distros |
13 | 17 | # type: bool |
|
16 | 20 | # Systemd vs. SysV init, related to above |
17 | 21 | # type: string |
18 | 22 | # |
| 23 | +# [*enable_sysmon*] |
| 24 | +# Windows: optionally enable sysmon (not used yet) |
| 25 | +# type: bool |
| 26 | +# |
19 | 27 | # [*extra_args*] |
20 | 28 | # Extra arguments to pass on the command line during agent activation. |
21 | 29 | # type: array of hashes |
|
54 | 62 | # Ruleset(s) to apply to host. |
55 | 63 | # type: array |
56 | 64 | # |
| 65 | +# [*setup_unless*] |
| 66 | +# Used in the setup exec in the configure class |
| 67 | +# type: String |
| 68 | +# |
| 69 | +# [*tmpdir*] |
| 70 | +# Used to download Windows agent MSI |
| 71 | +# type: string |
| 72 | +# |
57 | 73 | # [*ts_hostname*] |
58 | 74 | # Hostname as reported to Threat Stack. |
59 | 75 | # type: string |
60 | 76 | # |
| 77 | +# [*windows_download_url*] |
| 78 | +# Windows MSI download url |
| 79 | +# type: string |
| 80 | +# |
| 81 | +# [*windows_install_options*] |
| 82 | +# Windows MSI install options |
| 83 | +# type: array |
| 84 | +# |
| 85 | +# [*windows_ts_package*] |
| 86 | +# Windows MSI package name |
| 87 | +# type: string |
| 88 | +# |
61 | 89 | # === Examples |
62 | 90 | # |
63 | 91 | # Standard usage: |
|
78 | 106 | # |
79 | 107 | # Pete Cheslock <pete.cheslock@threatstack.com> |
80 | 108 | # Tom McLaughlin <tom.mclaughlin@threatstack.com> |
| 109 | +# Nate St. Germain <nate.stgermain@threatstack.com> |
81 | 110 | # |
82 | 111 | # === Copyright |
83 | 112 | # |
84 | | -# Copyright 2016 Threat Stack, Inc. |
| 113 | +# Copyright 2019 Threat Stack, Inc. |
85 | 114 | # |
86 | 115 | class threatstack ( |
87 | | - $deploy_key = undef, |
88 | | - $package_version = $::threatstack::params::package_version, |
89 | | - $configure_agent = true, |
90 | | - $extra_args = $::threatstack::params::extra_args, |
91 | | - $agent_config_args = undef, |
92 | | - $repo_class = $::threatstack::params::repo_class, |
93 | | - $repo_url = $::threatstack::params::repo_url, |
94 | | - $gpg_key = $::threatstack::params::gpg_key, |
95 | | - $rulesets = $::threatstack::params::rulesets, |
96 | | - $confdir = $::threatstack::params::confdir, |
97 | | - $ts_hostname = $::fqdn, |
98 | | - $disable_auditd = $::threatstack::params::disable_auditd, |
99 | | - $disable_auditd_cmd = $::threatstack::params::disable_auditd_cmd |
| 116 | + $deploy_key = undef, |
| 117 | + $package_version = $::threatstack::params::package_version, |
| 118 | + $configure_agent = true, |
| 119 | + $extra_args = $::threatstack::params::extra_args, |
| 120 | + $agent_config_args = undef, |
| 121 | + $repo_class = $::threatstack::params::repo_class, |
| 122 | + $repo_url = $::threatstack::params::repo_url, |
| 123 | + $gpg_key = $::threatstack::params::gpg_key, |
| 124 | + $rulesets = $::threatstack::params::rulesets, |
| 125 | + $confdir = $::threatstack::params::confdir, |
| 126 | + $ts_hostname = $::fqdn, |
| 127 | + $disable_auditd = $::threatstack::params::disable_auditd, |
| 128 | + $disable_auditd_cmd = $::threatstack::params::disable_auditd_cmd, |
| 129 | + $binpath = $::threatstack::params::binpath, |
| 130 | + $setup_unless = $::threatstack::params::setup_unless, |
| 131 | + $windows_download_url = $::threatstack::params::download_url, |
| 132 | + $windows_tmp_path = $::threatstack::params::tmp_path, |
| 133 | + $windows_install_options = concat(["TSDEPLOYKEY=${deploy_key}"],$::threatstack::params::windows_install_options) |
| 134 | + |
100 | 135 | ) inherits ::threatstack::params { |
101 | 136 |
|
102 | 137 | $ts_package = $::threatstack::params::ts_package |
|
0 commit comments