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}<add name="Public" .*',
            line    =>  '<add name="Public" autoStart="true" 
startMode="AlwaysRunning" managedRuntimeVersion="v4.0">',
            
however below works if i remove spaces from the file for testing

 file_line { "applicationHost.config":
            ensure  =>  'present',
            path    => 
 'c:/windows/sysnative/inetsrv/config/applicationHost.config',
            match   =>  '<add name="Public" .*',
            line    =>  '<add name="Public" autoStart="true" 
startMode="AlwaysRunning" managedRuntimeVersion="v4.0">',
            
the file has 12 spaces in front of the text.


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3f4376c4-d0aa-4c73-9364-1e64483f944c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to