Ask Your Question

puppetlabs-tomcat After module install how do i apply the manifests

asked 2016-03-01 16:14:38 -0600


I have downloaded puppetlabs-tomcat in the vagrant VM for dev environment. After that, how do I install tomcat and deploy war files with that, what are the files that are to be modified.

Since it is a local stand alone environment, i would like to use puppet apply on the VM. So, after the module download, do i need to create a site.pp and what contents goes inside?

I am not sure as to how to apply puppet apply and in which file?

Please clarify, i went through the but that didn't help.

Thanks in advance!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-03-02 00:18:27 -0600

Mr_Sharma gravatar image


Information about the module and it's applications can be found on the same forge page. I assume, you have dev environment where you installed your module. Inside the same dev environment you have a site.pp inside manifests directory. You have to define node definition to your site.pp:

node "agenthostname" {
 include tomcat

This will deploy tomcat module on your host:agenthostname: If your agent is attached with dev environment it will automatically pick up the tomcat module and install. To install a manifests locally please explore:

I hope it will solve your issue.

edit flag offensive delete link more

answered 2016-03-03 09:09:46 -0600

Thanks for the response.

I did have a site.pp with that information, however the problem was that the modulepath was returning /home/vagrant/.puppet/modules:/usr/share/puppet/modules when i typed in puppet master --configprint modulepath.

I got it working when I gave the following command:

sudo puppet apply --modulepath=/vagrant/modules tomcat.pp

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2016-03-01 16:14:38 -0600

Seen: 260 times

Last updated: Mar 03 '16