Ask Your Question
0

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 -0500

abhishekb gravatar image

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

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

Script

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

Comments

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

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

1 Answer

Sort by » oldest newest most voted
1

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

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

Comments

This is correct. :)

rob gravatar imagerob ( 2014-11-10 12:04:39 -0500 )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

2 followers

Stats

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

Seen: 619 times

Last updated: Nov 10 '14