|
2 | 2 | case $::osfamily { |
3 | 3 | 'Debian': { |
4 | 4 | $server_package_name = 'openssh-server' |
5 | | - $server_package_install_options = undef |
6 | | - $server_package_uninstall_options = undef |
| 5 | + $package_install_options = undef |
| 6 | + $package_uninstall_options = undef |
7 | 7 | $client_package_name = 'openssh-client' |
8 | | - $client_package_install_options = undef |
9 | | - $client_package_uninstall_options = undef |
10 | 8 | $package_provider = undef |
11 | 9 | $home_dir_path = '/home' |
12 | 10 | $sshd_path = '/usr/sbin/sshd' |
|
28 | 26 | } |
29 | 27 | 'RedHat': { |
30 | 28 | $server_package_name = 'openssh-server' |
31 | | - $server_package_install_options = undef |
32 | | - $server_package_uninstall_options = undef |
| 29 | + $package_install_options = undef |
| 30 | + $package_uninstall_options = undef |
33 | 31 | $client_package_name = 'openssh-clients' |
34 | | - $client_package_install_options = undef |
35 | | - $client_package_uninstall_options = undef |
36 | 32 | $package_provider = undef |
37 | 33 | $home_dir_path = '/home' |
38 | 34 | $sshd_path = '/usr/sbin/sshd' |
|
58 | 54 | } |
59 | 55 | 'FreeBSD', 'DragonFly': { |
60 | 56 | $server_package_name = undef |
61 | | - $server_package_install_options = undef |
62 | | - $server_package_uninstall_options = undef |
| 57 | + $package_install_options = undef |
| 58 | + $package_uninstall_options = undef |
63 | 59 | $client_package_name = undef |
64 | | - $client_package_install_options = undef |
65 | | - $client_package_uninstall_options = undef |
66 | 60 | $package_provider = undef |
67 | 61 | $home_dir_path = '/home' |
68 | 62 | $sshd_path = '/usr/sbin/sshd' |
|
84 | 78 | } |
85 | 79 | 'OpenBSD': { |
86 | 80 | $server_package_name = undef |
87 | | - $server_package_install_options = undef |
88 | | - $server_package_uninstall_options = undef |
| 81 | + $package_install_options = undef |
| 82 | + $package_uninstall_options = undef |
89 | 83 | $client_package_name = undef |
90 | | - $client_package_install_options = undef |
91 | | - $client_package_uninstall_options = undef |
92 | 84 | $package_provider = undef |
93 | 85 | $home_dir_path = '/home' |
94 | 86 | $sshd_path = '/usr/sbin/sshd' |
|
110 | 102 | } |
111 | 103 | 'Darwin': { |
112 | 104 | $server_package_name = undef |
113 | | - $server_package_install_options = undef |
114 | | - $server_package_uninstall_options = undef |
| 105 | + $package_install_options = undef |
| 106 | + $package_uninstall_options = undef |
115 | 107 | $client_package_name = undef |
116 | | - $client_package_install_options = undef |
117 | | - $client_package_uninstall_options = undef |
118 | 108 | $package_provider = undef |
119 | 109 | $home_dir_path = '/home' |
120 | 110 | $sshd_path = '/usr/sbin/sshd' |
|
136 | 126 | } |
137 | 127 | 'windows': { |
138 | 128 | $server_package_name = 'openssh' |
139 | | - $server_package_install_options = ['-params', '""/SSHServerFeature""'] |
140 | | - $server_package_uninstall_options = ['-params','""/SSHServerFeature""'] |
141 | 129 | $client_package_name = 'openssh' |
142 | | - $client_package_install_options = undef |
143 | | - $client_package_uninstall_options = undef |
| 130 | + $package_install_options = ['-params', '""/SSHServerFeature""'] |
| 131 | + $package_uninstall_options = ['-params','""/SSHServerFeature""'] |
144 | 132 | $package_provider = 'chocolatey' |
145 | 133 | $home_dir_path = 'C:/Users' |
146 | 134 | if $::architecture == 'x64' { |
|
169 | 157 | } |
170 | 158 | 'ArchLinux': { |
171 | 159 | $server_package_name = 'openssh' |
172 | | - $server_package_install_options = undef |
173 | | - $server_package_uninstall_options = undef |
| 160 | + $package_install_options = undef |
| 161 | + $package_uninstall_options = undef |
174 | 162 | $client_package_name = 'openssh' |
175 | | - $client_package_install_options = undef |
176 | | - $client_package_uninstall_options = undef |
177 | 163 | $package_provider = undef |
178 | 164 | $home_dir_path = '/home' |
179 | 165 | $sshd_path = '/usr/sbin/sshd' |
|
195 | 181 | } |
196 | 182 | 'Suse': { |
197 | 183 | $server_package_name = 'openssh' |
198 | | - $server_package_install_options = undef |
199 | | - $server_package_uninstall_options = undef |
| 184 | + $package_install_options = undef |
| 185 | + $package_uninstall_options = undef |
200 | 186 | $client_package_name = 'openssh' |
201 | | - $client_package_install_options = undef |
202 | | - $client_package_uninstall_options = undef |
203 | 187 | $package_provider = undef |
204 | 188 | $home_dir_path = '/home' |
205 | 189 | $sshd_path = '/usr/sbin/sshd' |
|
246 | 230 | case $::operatingsystem { |
247 | 231 | 'SmartOS': { |
248 | 232 | $server_package_name = undef |
249 | | - $server_package_install_options = undef |
250 | | - $server_package_uninstall_options = undef |
| 233 | + $package_install_options = undef |
| 234 | + $package_uninstall_options = undef |
251 | 235 | $client_package_name = undef |
252 | | - $client_package_install_options = undef |
253 | | - $client_package_uninstall_options = undef |
254 | 236 | $package_provider = undef |
255 | 237 | $home_dir_path = '/home' |
256 | 238 | $sshd_path = '/usr/sbin/sshd' |
|
277 | 259 | $ssh_known_hosts = "${ssh_cfg_dir}/ssh_known_hosts" |
278 | 260 | $service_name = 'svc:/network/ssh:default' |
279 | 261 | $sftp_server_path = 'internal-sftp' |
280 | | - $server_package_install_options = undef |
281 | | - $server_package_uninstall_options = undef |
282 | | - $client_package_install_options = undef |
283 | | - $client_package_uninstall_options = undef |
| 262 | + $package_install_options = undef |
| 263 | + $package_uninstall_options = undef |
284 | 264 | $package_provider = undef |
285 | 265 | $home_dir_path = '/home' |
286 | 266 | $sshd_path = '/usr/sbin/sshd' |
|
316 | 296 | case $::operatingsystem { |
317 | 297 | 'Gentoo': { |
318 | 298 | $server_package_name = 'openssh' |
319 | | - $server_package_install_options = undef |
320 | | - $server_package_uninstall_options = undef |
| 299 | + $package_install_options = undef |
| 300 | + $package_uninstall_options = undef |
321 | 301 | $client_package_name = 'openssh' |
322 | | - $client_package_install_options = undef |
323 | | - $client_package_uninstall_options = undef |
324 | 302 | $package_provider = undef |
325 | 303 | $home_dir_path = '/home' |
326 | 304 | $sshd_path = '/usr/sbin/sshd' |
|
342 | 320 | } |
343 | 321 | 'Amazon': { |
344 | 322 | $server_package_name = 'openssh-server' |
345 | | - $server_package_install_options = undef |
346 | | - $server_package_uninstall_options = undef |
| 323 | + $package_install_options = undef |
| 324 | + $package_uninstall_options = undef |
347 | 325 | $client_package_name = 'openssh-clients' |
348 | | - $client_package_install_options = undef |
349 | | - $client_package_uninstall_options = undef |
350 | 326 | $package_provider = undef |
351 | 327 | $home_dir_path = '/home' |
352 | 328 | $sshd_path = '/usr/sbin/sshd' |
|
0 commit comments