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, 2019 in Puppet by Nagya
526 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, 2019 by Kavya

Related Questions In Puppet

0 votes
1 answer

Puppet: Error: Could not parse for environment production: Syntax error at '='; expected '}'

This error occurs if puppet apply -e is used ...READ MORE

answered Aug 1, 2019 in Puppet by Sirajul
• 55,750 points
734 views
0 votes
1 answer

Error saying "Error: Could not autoload puppet/provider/package/rpm: No child processes." While installing gcc through puppet

Hey @Laksha, check your internet connectivity. You usually ...READ MORE

answered Feb 15, 2019 in Puppet by Jugnu
174 views
+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,420 points
609 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, 2019 in Puppet by Haider
457 views
0 votes
1 answer