saz / puppet-sudo

Manage sudo with Puppet on Debian-, RedHat- and SUSE-based linux distributions and some BSDs
Other
107 stars 215 forks source link

Puppet 4 and hiera problem #161

Closed jschaeff closed 7 years ago

jschaeff commented 7 years ago

Hi,

I'm not sure where this error can come from. I get:

Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Lookup of key 'sudo::enable' failed: DataBinding 'hiera': datadir for yaml cannot be an array

enven if hiera.yaml is correctly configured, for instance:

:yaml: :datadir: "/etc/puppetlabs/puppet/environments/%{environment}/hiera"

This errors only happens when I try to realize the sudo class:

include sudo

jschaeff commented 7 years ago

Nevermind, I get the same message with other modules.