Albert's suggestion is probably your best bet at the least amount of work.

First, create a custom fact that pulls that line out of your file.
https://docs.puppetlabs.com/facter/3.1/custom_facts.html.

Next, your template would have a placeholder for that item.

my_template.erb

...usual_template...
<%= @my_custom_fact %>
---remaining_template...

This isn't a great solution but it's probably the easiest way to solve your
problem quickly. I would not do this if that line is huge (some encoded
binary blob or something).

Trevor

On Thu, Jan 14, 2016 at 11:47 AM, Albert Shih <albert.s...@obspm.fr> wrote:

>  Le 13/01/2016 à 13:21:51-0800, Hunter Haugen a écrit
> > Does the application have an "include" syntax that would allow you do
> have one
> > file that is one line that the application manages, and the file that
> puppet
> > manages includes it where appropriate?
>
> Well....I would like it....but no...
>
> >
> > Or a stupid workaround would be to have a fact that is that one line,
> and a
> > puppet template that adds the line. So puppet would manage the whole
> file but
> > the line would not be affected by a puppet run.
>
> Humm....sorry I don't understand your workaround....
>
> Thanks.
>
> JAS
> --
> Albert SHIH
> DIO bâtiment 15
> Observatoire de Paris
> 5 Place Jules Janssen
> 92195 Meudon Cedex
> France
> Téléphone : +33 1 45 07 76 26/+33 6 86 69 95 71
> xmpp: j...@obspm.fr
> Heure local/Local time:
> jeu 14 jan 2016 17:46:08 CET
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/20160114164728.GA18250%40pcjas.obspm.fr
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699

-- This account not approved for unencrypted proprietary information --

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CANs%2BFoUnqdW%3DOr1gDMWkDudJzC75jDC%3DDH8p6Am65MSbVVFAyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to