On Mar 19, 10:11 am, Gamon wrote:
> Thanks for all your answers and suggestions.
>
> So, what happens is that I want to push a file from the master to a
> client. But the problem is that after starting the service that reads
> that file, it appends one line to it, which is an authorization token
Thanks for all your answers and suggestions.
So, what happens is that I want to push a file from the master to a
client. But the problem is that after starting the service that reads
that file, it appends one line to it, which is an authorization token.
Like this:
#1 file is pushed from the maste
See the following:
https://github.com/puppetlabs/puppetlabs-stdlib/tree/master/lib/puppet/provider/file_line
On Mar 16, 6:02 am, jcbollinger wrote:
> On Mar 15, 7:24 am, Gamon wrote:
>
> > I'd like to have a template that would contain:
>
> > line1 <%= value1 %>
> > line2 <%= value2 %>
> > line
On Mar 15, 7:24 am, Gamon wrote:
> 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
> o
Hi Bruno,
We need to be clear what you want.
Are you trying to make changes 'on the fly' to an existing file or are you
trying to produce a file and contents from puppet? Using templates overwrites
the content of existing files, as does using source =>.
So what you can do is the following.
c
Hi Dennis,
I think that implementing augeas is a bit unfeasible for us at this
moment. Would you know how to do that using ruby instead?
Thanks!
Bruno
On Mar 15, 2:00 pm, Dennis Hoppe
wrote:
> Hello Gamon,
>
> Am 15.03.2012 13:24, schrieb Gamon:
>
> > I'd like to have a template that would con
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 exist
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, De