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.