puppetlabs-stdlib file_line not finding match

asked 2017-09-05 15:45:54 -0600

Scott R gravatar image

updated 2017-09-06 09:38:21 -0600

DarylW gravatar image

Using file_line below, the match is found in the default /etc/postfix/main.cf file and replaced. Of course, running again and it is appended to file as expected. If the "append_on_no_match is changed to false", nothing is changed in the original file. Is anyone else seeing this issue with stdlib 4.19.0

file_line { 'smart_relay' :
    path               =>  '/etc/postfix/main.cf',
    line               => 'relayhost = smartrelay.domain',
    match              => '^#relayhost\ =\ uucphost$',
    append_on_no_match => true,
edit retag flag offensive close merge delete


On the module's description page https://forge.puppet.com/puppetlabs/stdlib there's a link “Report issues” pointing to https://tickets.puppetlabs.com/browse/MODULES You'll find multiple relevant tickets already opened.

Kai Burghardt gravatar imageKai Burghardt ( 2017-09-07 18:17:45 -0600 )edit