Re: [Puppet Users] file_line - Remove a piece of string

2014-11-05 Thread Felix Frank
On 10/21/2014 07:21 AM, Lobo Junior wrote: > 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.Persist

[Puppet Users] file_line - Remove a piece of string

2014-10-20 Thread Lobo Junior
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 cod