Categories
Linux Puppet Sys Admin

Strange Puppet Errors

Puppet: Could not parse for environment production: Could not match…

I have been playing with Puppet today in a way to manage my web server farm at work when i came up against this strange error:

Apr 21 15:39:12 predev2 puppetmasterd[6692]: Could not parse for environment production: Could not match 'import' at /etc/puppet/manifests/modules.pp:1

This issue is caused by files saved in the Windows format, to solve just open your files in VI and enter the following command:

:set fileformat=unix

This will convert the file from DOS to UNIX based line endings. You can also use any decent text editor to do the same thing.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.