- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with hub_keys
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
This module provides function hub_keys() that will fetch user keys from a gitlab or github server via the /.keys endpoint. This list is converted into a hash suitable to be passed to create_resources() (puppet < 4) or in a loop (puppet >= 4)
Github and Gitlab provide an endpoint that publishes user's public keys as configured for the user. To ease key administration, this module will synchronize the keys on the server with the authorized_keys of a local user.
Users will most likely already have keys configured in gitlab or github. That's all!
Use in a module and pass to create_resources:
$keys = hub_keys('monkey', 'https://gitlab.server.for.monkey')
create_resources(ssh_authorized_key, $keys)