Syntax error line 1 on a node, but the manifest is blank?

asked 2014-05-06 15:02:12 -0600

kwhite gravatar image

updated 2014-05-07 10:59:02 -0600

spuder gravatar image

I just started getting this error on the one test node I'm working on:

Error: Could not parse for environment production: Syntax error at end of file at line 1 on node puppettestnode1
Error: Could not parse for environment production: Syntax error at end of file at line 1 on node puppettestnode1

This worked yesterday but now suddenly it doesn't... there's no error code or anything.

Here's my site.pp manifest

node 'puppettestnode1' {

  file { '/etc/testfile.txt':
    path    => '/etc/testfile.txt',
    content => 'testing puppet verifying setup',
    ensure  =>  present,
  }

I'm completely confused on why this suddenly stopped working, any help would be appreciated.

edit retag flag offensive close merge delete

Comments

Try checking your line endings, also try running puppet parser validate site.pp

spuder gravatar imagespuder ( 2014-05-06 16:38:00 -0600 )edit
3

In the manifest you put, there is closing bracket missing. Might be just a copy paste issue.

doc75 gravatar imagedoc75 ( 2014-05-07 01:23:51 -0600 )edit