Groups
Groups
Sign in
Groups
Groups
Puppet Users
Conversations
About
Send feedback
Help
file_line - Remove a piece of string
72 views
Skip to first unread message
Lobo Junior
unread,
Oct 21, 2014, 1:21:39 AM
10/21/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
11/5/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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