Skip to content

Commit

Permalink
Add ability to specify supported option 'infinity' for LimitNPROC (vo…
Browse files Browse the repository at this point in the history
…xpupuli#152)

* Add ability to specify supported option 'infinity' for LimitNPROC

From limits.conf(5)
All items support the values -1, unlimited or infinity indicating no limit, except for priority and nice.

* Extend validation to include improved regexp
  • Loading branch information
hdeheer authored and simondeziel committed Jun 16, 2021
1 parent e0e870d commit ec45772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/servicelimits.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Optional['LimitRSS'] => Pattern['^(infinity|((\d+(K|M|G|T|P|E)(:\d+(K|M|G|T|P|E))?)))$'],
Optional['LimitNOFILE'] => Variant[Integer[-1],Pattern['^(infinity|\d+(:(infinity|\d+))?)$']],
Optional['LimitAS'] => Pattern['^(infinity|((\d+(K|M|G|T|P|E)(:\d+(K|M|G|T|P|E))?)))$'],
Optional['LimitNPROC'] => Integer[1],
Optional['LimitNPROC'] => Variant[Integer[-1],Pattern['^(infinity|\d+(:(infinity|\d+))?)$']],
Optional['LimitMEMLOCK'] => Pattern['^(infinity|((\d+(K|M|G|T|P|E)(:\d+(K|M|G|T|P|E))?)))$'],
Optional['LimitLOCKS'] => Integer[1],
Optional['LimitSIGPENDING'] => Integer[1],
Expand Down

0 comments on commit ec45772

Please sign in to comment.