Giter Club home page Giter Club logo

Comments (6)

leoarnold avatar leoarnold commented on June 23, 2024

The version of (J)Ruby your Puppet Server is running on is too old to understand the %i percent literal. This means you are using a version of Ruby which has already reached its end-of-life.

Also, this code was added to the module after the latest release which means you are working with a forked or cloned version of the module.

from puppet-cups.

cmseal avatar cmseal commented on June 23, 2024

@leoarnold thanks for taking the time to explain it. Much appreciated!

from puppet-cups.

tparkercbn avatar tparkercbn commented on June 23, 2024

This is an issue on any servers running puppet 4. They use their own built in ruby which at the moment is: /opt/puppetlabs/puppet/bin/ruby --version
ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-linux]

I am running puppet 4.10.12 on Debian 8 which are both listed as compatible in the forge module version 2.2.0.

from puppet-cups.

leoarnold avatar leoarnold commented on June 23, 2024

@tparkercbn The percent literal was already available in Ruby 2.0.0: https://docs.ruby-lang.org/en/2.0.0/syntax/literals_rdoc.html#label-Percent+Strings

from puppet-cups.

tparkercbn avatar tparkercbn commented on June 23, 2024

I agree, so I'm not sure why it's breaking. This is with module version 2.2.0 on server 4.12.10 (on Debian 8) and client 4.10.12 (on Debian 8)

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Type-Name, Could not autoload puppet/type/cups_queue: /etc/puppetlabs/code/environments/production/modules/cups/lib/puppet/type/cups_queue.rb:104: unknown type of %string
return "created a #{should_to_s(new_value)}" unless %i[class printer].include?(current_value)
^ at /etc/puppetlabs/code/environments/production/modules/cups/manifests/queues/default.pp:24:18

from puppet-cups.

leoarnold avatar leoarnold commented on June 23, 2024

@tparkercbn D'Oh: Since Puppet 4, the Puppet Server is written in Clojure and runs on the JVM where it uses some version of JRuby which probably does not support the percent literal.

I dropped the use of percent literals and published version 2.2.1 without it just now.

from puppet-cups.

Related Issues (20)

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.