Using create_resources (or an alternate method) for syslog entries in Puppet 4.10

asked 2018-01-25 11:23:46 -0500

monalsharma gravatar image

Hi,

I'm trying to use create_resources (syslog, $hash) in my code to create syslog entries, but this code works fine on Puppet 3.8.6 but it doesn't errors out with this on 4.10:

Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'Syslog'

I have validates my hash and it returns a proper hash where: Each key is a resource title. Each value is a hash of attributes and values for that resource.

I also tried using this method: $_syslog_configs.each | String $_syslog_config, Hash $attributes| { Resource[syslog] { $_syslog_config: * => $attributes; } }

but it returns the same error. Please suggest.

edit retag flag offensive close merge delete

Comments

Do you have the resource type syslog in your module path? I'm guessing you're using a module with a syslog resource type?

luksi1 gravatar imageluksi1 ( 2018-01-26 09:39:11 -0500 )edit