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
2,606 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
• 59,230 points
5,107 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
1,178 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,041 views
+2 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
2,619 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP