Error saying "Error: Could not parse for environment production" - Puppet

0 votes

I'm trying to run default.pp file but I end up with this error:

Error: Could not parse for environment production: Syntax error at '|' at /tmp/vagrant-puppet/manifests/default.pp:263:29 on node vagrant.example.com

This is my default.pp with line 263

if count($php_values['ini']) > 0 {
  $php_values['ini'].each { |$key, $value|
    puphpet::ini { $key:
      entry       => "CUSTOM/${key}",
      value       => $value,
      php_version => $php_values['version'],
      webserver   => $php_webserver_service
    }
  }
}

I dont see a problem here. 

Feb 15 in Puppet by Nagya
15 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hey @Nagya, You need to set the parser to future. 

Run this command:

puppet config print parser

If this command returns future then the issue is with something else. If it returns current then you have to change that. 

Go to /etc/puppet/puppet.conf and add the following line

parser = future
answered Feb 15 by Kavya

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Ram requirements for puppet installation

4 GB would be less for proper ...READ MORE

answered Dec 19, 2018 in Puppet by Alan
14 views
0 votes
1 answer

Service already defines error in Puppet

Hey @Rohan, try this: class MyClass { ...READ MORE

answered Feb 9 in Puppet by Monish
18 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Error: Could not find init script for 'puppet' - Puppet error

You need to be running your processes ...READ MORE

answered Mar 12 in Puppet by Haider
27 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.