The single quotes take the argument as it is.
In this case you are looking for a line with *xyz*
Maybe you want to try double quotes.

hth,

Martin

On 25 Feb 2015, at 13:58, Andreas Dvorak <[email protected]> wrote:

> 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.

-- 
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/33F0B944-9D59-4171-AEBD-48CD71BC2568%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to