Giter Club home page Giter Club logo

Comments (10)

saz avatar saz commented on August 22, 2024

Which version of this module is it?

from puppet-rsyslog.

DamianZaremba avatar DamianZaremba commented on August 22, 2024

Getting the same issue on 2.4.0 and master.
This is with the following enabled on the client

    trusted_node_data = true
    stringify_facts = true
    parser = future
    strict_variables = true

Without the above I get the following

Stderr from the command:

Error: Failed to parse template rsyslog/rsyslog.conf.erb:
  Filepath: /tmp/vagrant-puppet-1/modules-0/rsyslog/templates/rsyslog.conf.erb
  Line: 7
  Detail: undefined method `each' for nil:NilClass
 on node solr.localdomain
Error: Failed to parse template rsyslog/rsyslog.conf.erb:
  Filepath: /tmp/vagrant-puppet-1/modules-0/rsyslog/templates/rsyslog.conf.erb
  Line: 7
  Detail: undefined method `each' for nil:NilClass
 on node solr.localdomain

This seems to be because of strict_variables being enabled more than anything else (it never tries to render the template as the values being empty trigger the strict variables error).

from puppet-rsyslog.

saz avatar saz commented on August 22, 2024

Please give v3.1.0 a try and report, if the problem still exists.

from puppet-rsyslog.

jtopjian avatar jtopjian commented on August 22, 2024

I'm running into the same issue with Puppet 3.5.x. I was able to get around it by making several modifications to the manifests.

For example, in config.pp, I added a parameter for modules. I also had to change the custom_config parameter in client.pp to ''.

I was able to get this module working after those changes, but I don't know why these issues appeared after upgrading to 3.5.x.

from puppet-rsyslog.

saz avatar saz commented on August 22, 2024

This should be fixed in master.

from puppet-rsyslog.

andrew3 avatar andrew3 commented on August 22, 2024

This problem is caused by parser = future a puppet.conf setting

Any chance to push this fixed version to forge.puppetlabs.com?

from puppet-rsyslog.

jtopjian avatar jtopjian commented on August 22, 2024

Right, it's caused by the future parser, but can also be fixed by setting evaluator = current while keeping the future parser on.

from puppet-rsyslog.

andrew3 avatar andrew3 commented on August 22, 2024

unfortunately evaluator = current doesn't help, have received the following error:

Error: Failed to parse template rsyslog/rsyslog.conf.erb:
Filepath: /etc/puppet/modules/rsyslog/templates/rsyslog.conf.erb
Line: 7
Detail: undefined method `each' for nil:NilClass
at /etc/puppet/modules/rsyslog/manifests/config.pp:28 on node

from puppet-rsyslog.

 avatar commented on August 22, 2024

anyone a found a solution to this "NilClass" problem?

from puppet-rsyslog.

perfecto25 avatar perfecto25 commented on August 22, 2024

having same issue on PE 2015.3 (puppet server 4.2.1)

this is only for this node, other nodes are working. Hiera looks ok for this node as well, I can pull out values from hiera cmd line

root@ubudevbox:/etc/puppetlabs/code# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, undefined method `empty?' for nil:NilClass at /etc/puppetlabs/code/environments/production/manifests/site.pp:43:1 on node ubudevbox
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

from puppet-rsyslog.

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.