faxm0dem/puppet-syslog_ng

Error with Ruby 2.0 ?

pyfontan opened this issue · 1 comments

Hi,

When in hiera, we use a definition like :

syslog_ng::filter:
f_messages:
params:
- level: "info..emerg"

On our puppet test server (Scientific Linux 7, ruby 2.0.0p353, puppet 3.7.4), an issue occurs :
Mar 27 16:09:10 ccsvli80 puppet-master[3342]: (Scope(Class[Syslog_ng::Reload])) syslog_ng::reload: syntax_check_before_reloads=true
Mar 27 16:09:10 ccsvli80 puppet-master[3342]: (Scope(Class[Syslog_ng])) tmp_config_file: /tmp/syslog-ng.conf.tmp
Mar 27 16:09:13 ccsvli80 puppet-master[3342]: undefined method each' for "info..emerg":String at /etc/puppet/environments/syslogng_sl7/modules/syslog_ng/manifests/filter.pp:10 on node ccsvli80.in2p3.fr Mar 27 16:09:13 ccsvli80 puppet-master[3342]: Wrapped exception: Mar 27 16:09:13 ccsvli80 puppet-master[3342]: undefined methodeach' for "info..emerg":String
Mar 27 16:09:13 ccsvli80 puppet-master[3342]: undefined method each' for "info..emerg":String at /etc/puppet/environments/syslogng_sl7/modules/syslog_ng/manifests/filter.pp:10 on node ccsvli80.in2p3.fr Mar 27 16:09:13 ccsvli80 puppet-master[3342]: undefined methodeach' for "info..emerg":String at /etc/puppet/environments/syslogng_sl7/modules/syslog_ng/manifests/filter.pp:10 on node ccsvli80.in2p3.fr

There is no problem on our production server (Scientific Linux 6, ruby 1.8.7, puppet 3.7.2).

It's Ok in fact, need to change our hiera entry with :

syslog_ng::filter:
  f_messages:
    params:
      level:
        - "info..emerg"