trying to troubleshoot this error not sure where to look, one of my nodes a Debian box has correct certs, Im having issues running agent -t. Using Hiera for classifier, I double checked the yaml file for this node, can pull values from it using hiera command line,
hiera classes ::hostname=node1
["nginx","ntp"]
when running
puppet master --debug --compile node1
its getting the facts and running thru catalog compile, but getting this error towards end,
Debug: hiera(): Hiera YAML backend starting
Debug: hiera(): Looking up classes in YAML backend
Debug: hiera(): Looking for data source node/node1
Debug: hiera(): Found classes in node/node1
Debug: hiera(): Looking for data source Debian
Error: Evaluation Error: Error while evaluating a Function Call, (): could not find expected ':' while scanning a simple key at line 3 column 1 at /etc/puppetlabs/code/environments/production/manifests/site.pp:38:1 on node node1
Error: Evaluation Error: Error while evaluating a Function Call, (): could not find expected ':' while scanning a simple key at line 3 column 1 at /etc/puppetlabs/code/environments/production/manifests/site.pp:38:1 on node node1
Error: Failed to compile catalog for node node1: Evaluation Error: Error while evaluating a Function Call, (): could not find expected ':' while scanning a simple key at line 3 column 1 at /etc/puppetlabs/code/environments/production/manifests/site.pp:38:1 on node node1
I copied a working YAML file from another node to this node, the other node runs fine on compile, but something about this one causes the error. Also tried cleaning the cert and re-adding, but same error on compile debug run.
↧