Ask Your Question

geppetto - how to compile/run/test?

asked 2015-05-16 19:13:12 -0600

pup-master gravatar image

So I downloaded and installed gepetto plugin on Eclipse on top of downloading the standalone Gepetto itself.

I'm ok with using either one.

However, how do you compile/run/test or whatever you call it to test the puppet codes you wrote?

So for Java in Eclipse, you make it run on JDK virtual machine.

But how does this happen in gepetto? Or is this merely a text editing tool with which I have to manually export the modules and pp to a puppet master?

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-05-18 18:41:00 -0600

GregLarkin gravatar image

You can author all of your Puppet code with Geppetto and save it locally on your development machine. Then using Vagrant and shared folders, you can boot up a VM and puppet apply that code within the VM to test it. This will not involve a Puppet master at all.

There are some interesting projects out there to automatically kick off the Puppet code when it's changed and all of its tests (that you wrote) pass. Here's an example with a lot of explanation:

In any case, you can use whatever text editor you prefer - vi, emacs, Geppetto, etc. - as long as you are saving the Puppet code files (.pp) to the correct directory.

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


Asked: 2015-05-16 19:13:12 -0600

Seen: 546 times

Last updated: May 18 '15