Using file_line for modifying the file in windows
I have installed stdlib module on the windows agnet, and wrote below code in sample.pp file
file_line { 'change_content':
path => 'C://puppetlabs//Helloworld.txt',
line => 'Hello World!',
match => '^Hello World! , Whats Up',
}
When I execute above code , getting below error
C:\Windows\system32>puppet apply C:\Puppet_scripts\sample.pp Notice: Compiled catalog for windows178.kana-test.com in environment production in 0.09 seconds
Error: Validation of > Fileline[changecontent] failed: When providing a 'match' parameter, the > value must be a regex that matches > against the value of your 'lin e' > parameter at > C:/Puppetscripts/exchange.pp:5 > Wrapped exception: When providing a > 'match' parameter, the value must be a regex that matches again st the value > of your 'line' parameter