Dear all

I would like to use the stdlib Modul with file_line to delete a line that 
matches *xyz*.
But the resource

file_line {'delete line':
  ensure => absent,  
  path => '/etc/file', 
  line => '*xyz*',
}

or 

file_line {'delete line':
  ensure => absent,  
  path => '/etc/file', 
  match => '*xyz*',
}

does not work.

My current solution is with an exec resource but I don't like it.

Does anymbody know how to do it with file_line?

Andreas

-- 
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/bd72d951-bcb7-4091-879e-047d65d20407%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to