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
63 views

1 answer to this question.

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
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
150 views
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
134 views
0 votes
1 answer