Concatenating files from server into a single file on the client

29 views
Skip to first unread message

Sebastian Rettenberger

unread,
Jun 29, 2015, 9:10:10 AM6/29/15
to puppet...@googlegroups.com
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

Pete Brown

unread,
Jun 30, 2015, 7:12:28 PM6/30/15
to puppet-users
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
> --
> 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...@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.
Reply all
Reply to author
Forward
0 new messages