Categories
Linux

CTRL-S issue when using PuTTY or other terminal sessions?

If you press CTRL-S during a PuTTY session and the screen locks up. All is not lost, just press CTRL-Q and things should return to normal.

Categories
Linux Puppet Sys Admin

Strange Puppet Errors

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.