Ask Your Question
0

What's causing parse errors for my manifests in Windows Azure VMs?

asked 2015-01-15 15:05:46 -0500

iandow gravatar image

updated 2015-01-15 15:08:44 -0500

I keep getting parse errors with all the manifests I write in a Windows VM in Azure. Even a manifest generated with the command, puppet resource file C:\Windows > test.pp will return a parser error when I run puppet parser validate test.pp. Does anyone know why this might be happening?

I've posted my error at http://pastebin.com/eUppEsuK

My puppet master and windows agent are on version 3.7.1.

Thanks for any help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-01-15 15:32:16 -0500

iandow gravatar image

updated 2015-01-15 15:46:28 -0500

The reason this error was happening is because I created the manifest file with a > redirect in powershell.

In PowerShell > is effectively the same as | Out-File, and Out-File defaults to Unicode encoding.

The puppet validation error went away if I created the manifest file with this instead of using >: puppet resource file C:\Windows | Out-File outputfile -encoding ASCII

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-01-15 15:05:46 -0500

Seen: 137 times

Last updated: Jan 15 '15