Getting Hiera error in Puppet enterprise environment with non root account

115 views
Skip to first unread message

Siva nagi reddy

unread,
Jul 25, 2017, 9:30:07 AM7/25/17
to Puppet Users
Hi,

We had setup Puppet enterprise master agent environment to deploy one application. We setup non-root user account by following Puppet dcos to deploy application as we dont have permissions for root account. 

1) Installed the Sample module helloworld by following below steps and it worked with non -root account 



2) Installed motd module from puppet forge and getting below error while installing with non -root account 

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 'motd::dynamic_motd': can't convert Symbol into Integer at /etc/puppetlabs/puppet/environments/production/manifests/site.pp:23:2 on node username.hostname
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Site .pp:

node "default" {
        class { 'helloworld': }
        class { 'helloworld::motd': }
23:        class { 'motd': }
}


3) Configured my application module to install and getting below error 

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 'motd::dynamic_motd': can't convert Symbol into Integer at /etc/puppetlabs/puppet/environments/production/manifests/site.pp:21:2 on node username.hostname
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run



node "default" {
  if $::use_hieradata == "true" {
21    hiera_include('classes')
  }
}

hiera.yaml file location : /etc/puppetlabs/puppet/hiera.yaml
modules location: /etc/puppetlabs/puppet/environment/production/modules

Gone through multiple links and verified all configuration files but still we are not able to fix the issue. Could you please let us know if you have any suggestions why we are seeing this issue with non root account.

Regards,
Siva.

Henrik Lindberg

unread,
Jul 26, 2017, 11:59:47 AM7/26/17
to puppet...@googlegroups.com
The stacktrace logged server side for the error may reveal more about
the location of the problem. Also, since you are a PE user you can
contact Puppet Support to get help.

Best,
- henrik


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

Reply all
Reply to author
Forward
0 new messages