Error from Databinding 'hiera'

asked 2015-11-05 00:06:33 -0600

roguetech gravatar image

updated 2015-11-05 00:57:00 -0600

Hey All,

I am getting this error on the ntp module

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Error from DataBinding 'hiera' while looking up 'ntp::autoupdate': undefined method `empty?' for nil:NilClass at /etc/puppetlabs/puppet/environments/test/modules/base/manifests/ntp.pp:2:2 on node server1.test.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

the manifest it is trying to run is

class base::ntp {
        class { '::ntp':
                servers => [ '1.1.1.1', '2.2.2.2' ],
                iburst_enable => true,
                minpoll => '4',
                maxpoll => '4',
        }
}

i am not sure why it is looking up hiera.. if i add ntp::autoupdate then it says a different parameter is undefined

edit retag flag offensive close merge delete

Comments

If you do (on a puppet master) "puppet apply --modulepath=/etc/puppetlabs/puppet/environments/test/ -e "include base::ntp" you get the same error?

Cristian Falcas gravatar imageCristian Falcas ( 2015-11-05 03:35:11 -0600 )edit

for some reason i dont know why heira is read from /etc/puppetlabs/code/heira.yaml and in there is :hierarchy: - "nodes/%{::trusted.certname}" - "%{osfamily}" - common - defaults when i comment out the first two lines it works

roguetech gravatar imageroguetech ( 2015-11-05 19:02:45 -0600 )edit