Ask Your Question

how to install tomcat7 on windows automatically using puppet? (I want to byepass the dialog or installation prompt and get it installed automatically unlike clicking next again and again)

asked 2014-11-07 06:17:59 -0600

abhishekb gravatar image

updated 2014-11-10 02:58:15 -0600

I am getting following error Error: The source does not exist: 'puppet:///modules/test/org.apache.tomcat.Tomcat-7.0.27.exe'


package{'Tomcat7.0': ensure=>installed, #provider=>npackd, source=>"puppet:///modules/org.apache.tomcat.Tomcat-7.0.27.exe", install_options => ['INSTALLDIR=C:\Program Files\Apache Software Foundation'], }

Note: if i include provider=>npackd, then it gives error 'invalid resource provider'

edit retag flag offensive close merge delete


If you want to use npackd, ensure you have that module available.

rob gravatar imagerob ( 2014-11-10 12:03:47 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-11-09 06:48:23 -0600

vmule gravatar image

Hello, I think the issue is in the source path declaration.

Puppet URLs are not currently supported for the package type’s source attribute.

you should have something like:

package { "Tomcat-7.0.27":
  ensure             => installed,
  source             => 'C:\code\puppetlabs\temp\windowsexample\org.apache.tomcat.Tomcat-7.0.27.exe',
  install_options => ['INSTALLDIR=C:\Program Files\Apache Software Foundation'],
edit flag offensive delete link more


This is correct. :)

rob gravatar imagerob ( 2014-11-10 12:04:39 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2014-11-07 06:17:59 -0600

Seen: 828 times

Last updated: Nov 10 '14