Hello Gamon, Am 15.03.2012 13:24, schrieb Gamon: > 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.
i think you should take a look a augeas: http://projects.puppetlabs.com/projects/1/wiki/puppet_augeas Regards, Dennis
signature.asc
Description: OpenPGP digital signature