Merge pull request #252 from ghoneycutt/fix_sshd_config_maxstartups
(GH-251) Fix regex for sshd_config_maxstartups
This commit is contained in:
commit
9a349c7431
@ -556,9 +556,11 @@ Array of users for the AllowUsers setting in sshd_config.
|
|||||||
|
|
||||||
- *Default*: undef
|
- *Default*: undef
|
||||||
|
|
||||||
sshd_config_maxstartups
|
sshd_config_maxstartups (string)
|
||||||
-----------------------
|
-----------------------
|
||||||
Specifies the maximum number of concurrent unauthenticated connections to the SSH daemon.
|
Specifies the maximum number of concurrent unauthenticated connections
|
||||||
|
to the SSH daemon. Must be a stringified integer or a string with three
|
||||||
|
integers separated by colons, such as '10:30:100'.
|
||||||
|
|
||||||
- *Default*: undef
|
- *Default*: undef
|
||||||
|
|
||||||
|
@ -632,7 +632,7 @@ class ssh (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if $sshd_config_maxstartups != undef {
|
if $sshd_config_maxstartups != undef {
|
||||||
validate_re($sshd_config_maxstartups,'^(\d+)+(\d+?:\d+?:\d+)?$',
|
validate_re($sshd_config_maxstartups,'^((\d+)|(\d+?:\d+?:\d+)?)$',
|
||||||
"ssh::sshd_config_maxstartups may be either an integer or three integers separated with colons, such as 10:30:100. Detected value is <${sshd_config_maxstartups}>.")
|
"ssh::sshd_config_maxstartups may be either an integer or three integers separated with colons, such as 10:30:100. Detected value is <${sshd_config_maxstartups}>.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user