Hi Raj,

when running puppet apply on your module init.pp you will only compile the 
module but you will not instantiate the module.
(google for definition vs. declaration)

You need to create another init.pp file (normally you put them into 
<yourmodule>/tests/init.pp).
In this file you declare the module (e.g. using include <yourmodule>)

hth,

Martin

On 20 Nov 2013, at 11:59, Raj kumar V <vijayarajku...@gmail.com> wrote:

> Martin,
> 
>    Still same no work done or no errors.
> 
> To explain further, simply I wrote a module. Nad it is inside 
> /etc/puppetlabs/puppet/modules/<mymodule>
> 
> 2 files: init.pp and params.pp
> 
> when I compile or execute it
> 
> root@nfaxen-ubu1:/etc/puppetlabs/puppet/modules/site24x7# puppet apply init.pp
> Notice: Compiled catalog for nfaxen-ubu1.csez.zohocorpin.com in environment 
> production in 0.06 seconds
> Notice: Finished catalog run in 0.27 seconds
> 
> Thts the output and no work done.
> 
> Are you saying I have to create a another pp file and add this in <include 
> mymodule> and execute it with --noop?
> 
> 
> 
> On Wednesday, 20 November 2013 16:14:33 UTC+5:30, Martin Alfke wrote:
> Hi Raj, 
> 
> you can do smoketsts for your module 
> http://docs.puppetlabs.com/guides/tests_smoke.html 
> 
> Simply use your module (e.g. by include <modulename>) 
> 
> The you run a local puppet apply <smoketestfile> —noop 
> 
> —noop ensures that you simulate the puppet run only. 
> 
> hth, 
> 
> Martin 
> 
> On 20 Nov 2013, at 11:34, Raj kumar V <vijayar...@gmail.com> wrote: 
> 
> > Hi There, 
> > 
> >    I am kind of lost, understood something wrong. I have written a module. 
> > Now how can I test this module? Do I need to copy it to agent or server? Is 
> > it possible to test it as a standalone module where I have a machine with 
> > puppet agent or server installed? It is a simple module I dont want 
> > complicate things with cucumber or some rspec etc. 
> > 
> >    How can I test it with puppet apply command? When I run this it say 
> > everything complied but no work done and no errors too. 
> > 
> > Thanks 
> > Raj 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> > "Puppet Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to puppet-users...@googlegroups.com. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/puppet-users/5ef065b1-8a57-4f40-a43c-3e989da23101%40googlegroups.com.
> >  
> > For more options, visit https://groups.google.com/groups/opt_out. 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/3e6e08c5-2047-4424-9581-435909d23fbc%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/AE76D01D-AB1F-4733-A626-FC355AA09368%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to