GithubHelp home page GithubHelp logo

puppetlabs-sshkeys_core's Introduction

sshkeys_core

Modules Status Modules Status Modules Status Modules Status

Table of Contents

  1. Description
  2. Usage - Configuration options and additional functionality
  3. Reference - User documentation
  4. Development - Guide for contributing to the module

Description

Manage SSH authorized_keys, and ssh_known_hosts files.

Usage

To manage an authorized key for a user, use the following code:

ssh_authorized_key { '[email protected]':
  ensure => present,
  user   => 'nick',
  type   => 'ssh-rsa',
  key    => 'AAAAB3Nza[...]qXfdaQ==',
}

This would create a key that appears in your ~/.ssh/id_rsa.pub file like this with resource name as comment:

ssh-rsa AAAAB3Nza[...]qXfdaQ== [email protected]

To manage a known hosts file entry, use the following code:

sshkey { 'github.com':
  ensure => present,
  type   => 'ssh-rsa',
  key    => 'AAAAB3Nza[...]UFFAaQ==',
}

Reference

Please see REFERENCE.md for the reference documentation.

This module is documented using Puppet Strings.

For a quick primer on how Strings works, please see this blog post or the README.md for Puppet Strings.

To generate documentation locally, run the following command:

bundle install
bundle exec puppet strings generate ./lib/**/*.rb

This command will create a browsable \_index.html file in the doc directory. The references available here are all generated from YARD-style comments embedded in the code base. When any development happens on this module, the impacted documentation should also be updated.

Development

Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can't access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.

We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.

For more information, see our module contribution guide.

puppetlabs-sshkeys_core's People

Contributors

ariaxli avatar bastelfreak avatar bobosilavictor avatar ciprianbadescu avatar cthorn42 avatar davidsandilands avatar dorin-pleava avatar ehom avatar gabrielnagy avatar gimmyxd avatar iristyle avatar jhelwig avatar joshcooper avatar jpogran avatar jtappa avatar luchihoratiu avatar melissa avatar mhashizume avatar mihaibuzgau avatar natemccurdy avatar puppetlabs-jenkins avatar reidmv avatar shubhamshinde360 avatar transifex-bot avatar tvpartytonight avatar xrobau avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppetlabs-sshkeys_core's Issues

Problems under Debian Bookworm

Describe the Bug

When running our puppet roles on Debian 12 we are gettings this error

Error: Failed to apply catalog: Resource type 'Ssh_authorized_key' was not found

Expected Behavior

Role to run without problems!
same script works up til Debian 11

Steps to Reproduce

Steps to reproduce the behavior:
Use sshkeys_core

ssh_authorized_key { '[email protected]':
  ensure => present,
  user   => 'nick',
  type   => 'ssh-rsa',
  key    => 'AAAAB3Nza[...]qXfdaQ==',
}

Environment

root@test-debian12:~# puppet --version
7.23.0
root@test-debian12:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

Additional Context

Add any other context about the problem here.

root@test-debian12:~# puppet agent -t
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Failed to apply catalog: Resource type 'Ssh_authorized_key' was not found
root@test-debian12:~# puppet module list
/usr/share/puppet/modules
├── puppetlabs-concat (v7.3.1)
├── puppetlabs-firewall (v3.4.0)
├── puppetlabs-host_core (v1.1.0)
├── puppetlabs-sshkeys_core (v2.3.0)
└── puppetlabs-stdlib (v8.5.0)
root@test-debian12:~#
ssh_authorized_key { 'ssh key':
  name     => 'root@server1', 
  ensure   => present,
  key	 => $backup_ssh_key,
  user     => 'root',
}
root@test-debian12:~# dpkg -l | grep puppetlabs
ii  puppet-module-puppetlabs-host-core    1.1.0-1                 all          Puppet module for managing /etc/hosts file
ii  puppet-module-puppetlabs-sshkeys-core 2.3.0-1                 all          Puppet module for managing SSH authorized_keys, and ssh_known_hosts files
ii  puppet-module-puppetlabs-stdlib       8.5.0-1                 all          Puppet module standard library

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.