fraenki / puppet-sshkeys Goto Github PK
View Code? Open in Web Editor NEWPuppet module to manage ssh public keys.
Home Page: https://forge.puppetlabs.com/fraenki/sshkeys
License: BSD 2-Clause "Simplified" License
Puppet module to manage ssh public keys.
Home Page: https://forge.puppetlabs.com/fraenki/sshkeys
License: BSD 2-Clause "Simplified" License
Hi,
As I see you started to use new hash syntax in parsers (cd5b4bc). These changes break compatibility with 1.8.* ruby version that is used in a lot of distro. At least the following distro do not work now:
Are you planning to support such version of distro?
Here is error message:
Error: Could not autoload puppet/parser/functions/sshkeys_convert_to_hash: /opt/puppet-aa/var/modules/sshkeys/lib/puppet/parser/functions/sshkeys_convert_to_hash.rb:19: syntax error, unexpected ':', expec
ting ')'
type: :rvalue,
^
/opt/puppet-aa/var/modules/sshkeys/lib/puppet/parser/functions/sshkeys_convert_to_hash.rb:21: syntax error, unexpected ')', expecting kEND
) do |args|
^
/opt/puppet-aa/var/modules/sshkeys/lib/puppet/parser/functions/sshkeys_convert_to_hash.rb:44: syntax error, unexpected kEND, expecting $end
Error: Could not autoload puppet/parser/functions/sshkeys_convert_to_hash: /opt/puppet-aa/var/modules/sshkeys/lib/puppet/parser/functions/sshkeys_convert_to_hash.rb:19: syntax error, unexpected ':', expec
ting ')'
type: :rvalue,
^
/opt/puppet-aa/var/modules/sshkeys/lib/puppet/parser/functions/sshkeys_convert_to_hash.rb:21: syntax error, unexpected ')', expecting kEND
) do |args|
^
/opt/puppet-aa/var/modules/sshkeys/lib/puppet/parser/functions/sshkeys_convert_to_hash.rb:44: syntax error, unexpected kEND, expecting $end on node v-influx-002-prod.phx2.symcpe.net
Error: Could not autoload puppet/parser/functions/sshkeys_convert_to_hash: /opt/puppet-aa/var/modules/sshkeys/lib/puppet/parser/functions/sshkeys_convert_to_hash.rb:19: syntax error, unexpected ':', expec
ting ')'
type: :rvalue,
^
/opt/puppet-aa/var/modules/sshkeys/lib/puppet/parser/functions/sshkeys_convert_to_hash.rb:21: syntax error, unexpected ')', expecting kEND
) do |args|
^
/opt/puppet-aa/var/modules/sshkeys/lib/puppet/parser/functions/sshkeys_convert_to_hash.rb:44: syntax error, unexpected kEND, expecting $end on node v-influx-002-prod.phx2.symcpe.net
with parser: future
in puppet.conf.
If i do
class { '::sshkeys':
users => {
'root' => {
'home' => '/root',
'keys' => {
'adm01' => {'type'=>'ssh-dss', 'key'=>$rootUserKey},
},
},
},
}
and no definition for sshkeys::users
in hiera I've got this error :
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, create_resources(): second argument must be a hash at /etc/puppet/modules/sshkeys/manifests/init.pp:26:5 on node xxxxxxx
After some testing i've found that
$hiera_users = hiera_hash('sshkeys::users',undef)
in init.pp:16 seems not returning undef (and I can not get return type because type
function from stdlib doesn't work with future parser)
To avoid temporarily this issue i have to replace this line by a simple
$hiera_users = undef
This was tested with :merge_behavior: deeper
and :merge_behavior: native
.
users get not created with puppet 4 agent.
Firstly, thank you for a plugin that does exactly what I needed, and the fantastic documentation that got me going quickly! But, I do have a question... is there support in this module for additional authorized_keys options such as "from" or "command"?
Hi,
could you update your puppet forge release and dependencies? https://forge.puppet.com/fraenki/sshkeys/dependencies. I'm using the module with puppetlabs-stdlib (v5.2.0) and it works fine so far. But I'm getting errors when I want to install it because my version doesn't fit your actual dependency definition. so the installation works with puppet module install --ignore-dependencies fraenki-sshkey
but that should not be the way to do it.
cheers! Ringo
@artem-sidorenko, I want to relicense this module to a 2-Clause BSD license, because I use it for all my OSS. Since you're the original author I ask you to agree.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.