puppetlabs / puppetlabs-sshkeys_core

Apache License 2.0
4 stars 31 forks source link

Problems under Debian Bookworm #77

Closed nerdalertdk closed 11 months ago

nerdalertdk commented 11 months ago

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 { 'nick@magpie.example.com':
  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
nerdalertdk commented 11 months ago

Debian bookworm package sucks, tried installing bulleyes on it and everything works as expected

Bookworm deb when 😅

Closing this