Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The puppet editor tips page seems to suggest that using eclipse & dltk (presumably the ruby tools) will assist with editing .pp files.

http://projects.puppetlabs.com/projects/1/wiki/Editor_Tips

I can't see any difference or get syntax highlighting with DLTK 1.0 and the ruby plugins installed. Is there something I'm missing or eclipse configuration I need to set for it to start doing syntax highlighting and validation of my puppet model?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Before the above will work, I had to create a new eclipse ruby project and add a ruby interpreter pointing at /usr/bin/ruby (the default install location of ruby on Mac OS X).

After that was done, it was possible to open and highlight .pp files in the Ruby editor and get syntax highlighting working.

It also helps to link the .pp file type with the ruby editor in the General > Editors > File Associations section of the Eclipse preferences.

share|improve this answer

Also checkout the project https://github.com/cloudsmith/geppetto which contains a Puppet .pp parser/editor with syntax coloring, error markers, etc. and with features that makes it easy to work with puppet modules.

Geppetto is available as a ready to use download, or as features installable into Eclipse.

share|improve this answer
    
geppetto is definitely the way to go. –  Nan Liu May 4 '11 at 17:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.