Re: [Puppet Users] file_line match with spaces

2014-08-19 Thread Christopher Wood
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

[Puppet Users] file_line match with spaces

2014-08-19 Thread Helen Paterson
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} '',

Re: [Puppet Users] File_line match

2014-05-14 Thread Kenton Brede
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

[Puppet Users] File_line match

2014-05-14 Thread eliran shlomo
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=-