On Tue, Aug 19, 2014 at 08:01:40AM -0700, Helen Paterson wrote:
>Hi,
>I cannot get the regex to work in puppet for "file_line" it work in a
>regex tool
> file_line { "applicationHost.config":
> ensure => 'present',
> path =>
> 'c:/windows/sysna
Hi,
I cannot get the regex to work in puppet for "file_line" it work in a regex
tool
file_line { "applicationHost.config":
ensure => 'present',
path=>
'c:/windows/sysnative/inetsrv/config/applicationHost.config',
match => '\s{1,12} '',
I tested this and the match is working OK. What I got from what you posted
is the following:
Error: Failed to apply catalog: Validation of File_line[password policy
change] failed: When providing a 'match' parameter, the value must be a
regex that matches against the value of your 'line' paramete
Hi,
I'm trying to replace line inside a file with file_line.
file_line { 'password policy change':
ensure => present,
path=> '/tmp/test',
match => 'password.*requisite.*cracklib\.so.*',
line => 'passwordrequisite
pam_cracklib.so retry=3 minlen=8 difok=5 dcredit=-