Re: [Puppet Users] Concatenating files from server into a single file on the client

2015-06-30 Thread Pete Brown
Hi Sebastian,

The sshauthorizedkey type will do what you need.

https://docs.puppetlabs.com/references/latest/type.html#sshauthorizedkey

On 29 June 2015 at 22:29, Sebastian Rettenberger
 wrote:
> Hi,
>
> I am new to Puppet and I try to manage authorized_keys file on my servers
> with Puppet.
> Up until now, we have cronjob that combines all the files in one directory
> and stores them in .ssh/authorized_keys on the servers.
>
> Is something like this possible with Puppet as well? I have only found
> solutions for a fixed list of files. However, I would really like to keep
> this dynamic since the files change comparatively often.
> In addition, the file on the client should only be updated if a ssh keys was
> added or deleted (but this is optional).
>
> Thanks for any help,
> Sebastian
>
> --
> 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/7e4b1951-ca60-4e0a-b464-9aa79ce30efa%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Pete Brown
Director and Primary Infrastructure Developer
Abstract IT Pty Ltd.

-- 
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/CAM8R_x-O%3DW03-5ObQ1JaYRoqM%3DZOWZgNXBv0zrqzsurOC%3DNj6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Concatenating files from server into a single file on the client

2015-06-29 Thread Sebastian Rettenberger
Hi,

I am new to Puppet and I try to manage authorized_keys file on my servers 
with Puppet.
Up until now, we have cronjob that combines all the files in one directory 
and stores them in .ssh/authorized_keys on the servers.

Is something like this possible with Puppet as well? I have only found 
solutions for a fixed list of files. However, I would really like to keep 
this dynamic since the files change comparatively often.
In addition, the file on the client should only be updated if a ssh keys 
was added or deleted (but this is optional).

Thanks for any help,
Sebastian

-- 
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/7e4b1951-ca60-4e0a-b464-9aa79ce30efa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.