Hi,

That depends on what you have available to you to test for.

You can use 'if' statements and other ruby conditional statements in your 
template which can test values of variables and make appropriate decisions.

You might like to provide a bit more info on what you are trying to do?

Den

On 15/03/2012, at 3:10, Gamon <bruno.pessa...@gmail.com> wrote:

> I have a file containing:
> 
> line1
> line2
> line3
> 
> How can I use puppet (template/file) to maintain line1 and line3 and
> ignore line2?
> 
> Thanks!
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to