Giter VIP home page Giter VIP logo

puppet-sshkeys's People

Contributors

artem-sidorenko avatar fraenki avatar oxc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

puppet-sshkeys's Issues

1.8.* ruby support

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:

  • redhat 5,6
  • centos 5,6
  • oraclelinux 5, 6
  • scientific 5, 6

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

future parser

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.

support for authorized_keys options?

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"?

puppet forge release and dependencies

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

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.