On 10/13/2015 04:45 PM, Jakov Sosic wrote:
Hi guys,

I'm having problems migrating from 3.8 to 4.2...


# puppet agent -tv --tags snmp --noop
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, Error
from DataBinding 'hiera' while looking up 'yum::conf::stage':
(<unknown>): sequence entries are not allowed here at line 13 column 25
at
/etc/puppetlabs/code/environments/production/modules/yum/manifests/init.pp:11:3
on node kickstart.neogov.net
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run


# cat /etc/puppetlabs/code/hiera.yaml
---
:backends:
     - yaml
:yaml:
   :datadir: "/etc/puppetlabs/code/environments/%{environment}/hieradata"
:hierarchy:
     - "host/%{::fqdn}"
     - "domain/%{::domain}"
     - useraccounts
     - "osfamily/%{::family}"
     - common



Now, if I state a wrong hiera directory, for example hiera_data, my
manifests start working again, but without Hiera, agent wants to make
changes to defaults...

So, my question is - any ideas why do I get this error?

Also if I disable the class that's mentioned in the error, next class in the manifest bombs out:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Error from DataBinding 'hiera' while looking up 'centos::iptables::source': ...



This is centos::iptables::source:

class centos::iptables (
  $source = 'puppet:///modules/centos/ipv4_iptables',
){
  ...
}


Any ideas?


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/561D19B8.8040703%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to