Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Customer Feedback
-
Needs Assessment
Description
Basic Info
Module Version:
stdlib 4.17.0
Puppet Version:
2017.2.1
OS Name/Version:
Centos 6.8
Using the following code
file_line { "limits: disable core dumps": |
ensure => present, |
path => '/etc/security/limits.conf', |
line => "*\thard\tcore\t0", |
match => "^[ \t]*\*[ \t]+hard[ \t]+core[ \t]+.*", |
multiple => true, |
}
|
Will correctly add the entry to '/etc/security/limits.conf' if it does not exist
eg
- hard core 0
If the following lines exist
- hard core 90
- hard core 10
it correctly corrects both lines to - hard core 0
- hard core 0
However if these lines exist in the file
- hard core 90
- hard core 0
It incorrectly does nothing
It should correct the first line
Attachments
Issue Links
- is supported by
-
MODULES-5486 Supported Release (stdlib) 4.19.0 - (release date) - (SHA)
-
- Closed
-