This worked for me:

file_line { 'remove ':
        ensure => absent,
        path => '/path/to/file.conf',
        match   => 'some (regexp) part of a given line',
        match_for_absence  => true,
        line => '',
 }

Note how the 'line' attribute is still there but null (nothing between 2
single quotes).
HTH!

 -- Khalid

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CABQEtdy3dpYpQFQkYNP2tWq5K1RQBiyK9bLKEA57PPn5CDVA1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to