Ask Your Question
-1

Puppet module [closed]

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

nkadithya31 gravatar image

Hi,

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.

Thanks,

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

Comments

1

I believe ask.puppetlabs.com is more meant for specific question, however have a look here (http://puppetlabs.com/presentations/working-puppet-modules-theres-ide)

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
1

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
2

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.

http://docs.puppetlabs.com/learning/index.html#login-info

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

Comments

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

Stats

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

Seen: 64 times

Last updated: Mar 14 '14