Ask Your Question
0

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

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

Hi,

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 ReadMe.md but that didn't help.

Thanks in advance!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

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

rajeevsharma gravatar image

Hi,

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: https://docs.puppetlabs.com/puppet/latest/reference/langnodedefinitions.html 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: https://docs.puppetlabs.com/puppet/latest/reference/man/apply.html

I hope it will solve your issue.

edit flag offensive delete link more
0

answered 2016-03-03 09:09:46 -0500

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

Stats

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

Seen: 127 times

Last updated: Mar 03 '16