Ask Your Question

Puppet module [closed]

asked 2014-03-13 20:00:29 -0600

nkadithya31 gravatar image


I just got started using puppet and got the Geppetto IDE to write module I need help writing a simple module to install packages and manage a few file using the module on puppet.


edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by nkadithya31
close date 2014-04-22 08:32:51.284333



I believe is more meant for specific question, however have a look here (

golja gravatar imagegolja ( 2014-03-13 20:31:05 -0600 )edit

I have written a module but it does not seem to work :( I would like if some one to have a look and correct me on where i went wrong

nkadithya31 gravatar imagenkadithya31 ( 2014-03-13 20:48:08 -0600 )edit

Have you gone through the learning puppet docs yet? Maybe you could show your manifest, and the error that you are getting?

spuder gravatar imagespuder ( 2014-03-13 23:19:24 -0600 )edit

Yes I did go through the docs but want not able to make much out if it, This much I understood is i write my code in the init.pp ...(more)

nkadithya31 gravatar imagenkadithya31 ( 2014-03-14 00:34:32 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-14 09:11:01 -0600

spuder gravatar image

You'll want to start with the puppet learning VM. There are great instructions that walk you through creating your first manifest. Follow the examples by trying them inside the VM.

Puppet can be run in a master full or master less way. Start with a masterless and just create an arbitrary file.

 touch /tmp/puppet-fun.pp

Inside that file create a declaration

file {'/tmp/test1':
      ensure  => present,
      content => "Hi.",

Then do a puppet apply

puppet apply --verbose --debug /tmp/puppet-fun.pp

The learning vm documentation will further explain how to create ... (more)

edit flag offensive delete link more


nkadithya31, just to expand a bit on spuder's excellent answer (which I just upvoted): It's easiest, when starting out, to run Puppet directly on your own system (in ...(more)

AronR gravatar imageAronR ( 2014-03-14 10:33:05 -0600 )edit

You can verify that there aren't any major syntax errors in your manifest by entering the "puppet parser validate" command. For instance, in spuder's example, you could enter ...(more)

AronR gravatar imageAronR ( 2014-03-14 10:37:38 -0600 )edit

spuder's example is about the simplest possible way to run a Puppet manifest. After trying and verifying that this example works for you, you can then try renaming it ...(more)

AronR gravatar imageAronR ( 2014-03-14 10:41:51 -0600 )edit

Question Tools

1 follower


Asked: 2014-03-13 20:00:29 -0600

Seen: 67 times

Last updated: Mar 14 '14