-
Notifications
You must be signed in to change notification settings - Fork 34
Could not autoload puppet/type/cups_queue #91
Comments
The version of (J)Ruby your Puppet Server is running on is too old to understand the 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. |
@leoarnold thanks for taking the time to explain it. Much appreciated! |
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 I am running puppet 4.10.12 on Debian 8 which are both listed as compatible in the forge module version 2.2.0. |
@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 |
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 |
@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. |
Given Fedora 27 with Puppet 5.5.8 and CUPS 2.2.4.
When I apply the manifest
include '::cups'
In order to setup printers using hiera
Then I get the error message:
The text was updated successfully, but these errors were encountered: