max length is on both systems 31
This commit is contained in:
parent
99c0b5ef60
commit
45b0dfcd6b
1 changed files with 1 additions and 4 deletions
|
@ -56,12 +56,9 @@ define user::managed(
|
|||
default => $shell,
|
||||
}
|
||||
|
||||
if ($kernel == 'OpenBSD') and (strlength($name) > 31) {
|
||||
if strlength($name) > 31 {
|
||||
fail("Usernames can't be longer than 31 characters. ${name} is too long!")
|
||||
}
|
||||
if ($kernel == 'Linux') and (strlength($name) > 32) {
|
||||
fail("Usernames can't be longer than 32 characters. ${name} is too long!")
|
||||
}
|
||||
|
||||
user { $name:
|
||||
ensure => $ensure,
|
||||
|
|
Loading…
Reference in a new issue