file_line - Remove a piece of string

72 views
Skip to first unread message

Lobo Junior

unread,
Oct 21, 2014, 1:21:39 AM10/21/14
to puppet...@googlegroups.com
I want remove a piece of string of a file on using file_line?

Example

file_line { 'try-replace':
  path => '/tmp/eureka.txt',
  line => 'com.PersistenceSchemeRedis(not_used,localhost:1982:false)',
  match   => "com.hp.clasp.internal.PersistenceSchemeRedis.*$",
  ensure  => absent,
}

But this code doesn't works.

Felix Frank

unread,
Nov 5, 2014, 7:39:46 PM11/5/14
to puppet...@googlegroups.com
What is the content of the file?
What do you expect to happen?
What happens instead?
Reply all
Reply to author
Forward
0 new messages