Hi Den,

I'd like to have a template that would contain:

line1 <%= value1 %>
line2 <%= value2 %>
line3 <%= value3 %>

But the template should ignore line2 for example if that already
exists. Something like greping for line2 and if that exists, keep the
original line.

Bruno

On Mar 14, 9:13 pm, Denmat <tu2bg...@gmail.com> wrote:
> 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 
> > athttp://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