voxpupuli / puppet-system

Manage Linux system resources and services from hiera configuration
https://forge.puppet.com/puppet/system
Apache License 2.0
63 stars 47 forks source link

Puppet agent returns an error if puppet future parser is enabled #20

Closed florianfa closed 1 year ago

florianfa commented 10 years ago

Hello erwbgy,

If I use the future parser I will get an 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/environments/development/modules/system/manifests/yumrepos.pp:16:7 on node Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

My Env: Puppet Master: 3.7.1 Puppet Agent: 3.7.1

Thank you.

Regards, Florian

RichardN commented 9 years ago

I was experimenting with puppet and discovered that hiera_hash("key", undef) doesn't actually return undef from 3.7 onwards (I haven't checked without the future parser.) Using 3.6.2 will work.

Here is the module I wrote to test: class broken () { $broken = hiera_hash("broken::stuff", undef) if $broken { notify { "puppet version ${::puppetversion} is broken": } } else { notify { "puppet version ${::puppetversion} works OK": } } }

bastelfreak commented 1 year ago

Hi, based on a discussion in https://groups.io/g/voxpupuli/message/449 we decided to archive this repository. I'm going to close all issues and PRs. If you're interested in maintaining the module, please respond to our mailinglist.