Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Pass parameters from nodes.pp #19

Open
avinashsi opened this issue Jul 22, 2014 · 2 comments
Open

Pass parameters from nodes.pp #19

avinashsi opened this issue Jul 22, 2014 · 2 comments

Comments

@avinashsi
Copy link

Hi ,
Can u please guide us how to pass parameters from nodes.pp as against any templates
defined in this module.

@looney1
Copy link

looney1 commented Jul 22, 2014

Hi Avinash,

You can make a call to the class, like this:

tomcat::instance { 'DataService01':
http_port => '10180',
control_port => '10104',
ajp_port => '10109',
https_port => '10143',
catalina_home => '/opt/tomcat7',
java_home => '/u01/sw/java7',
catalina_opts => '-Xdebug -Xrunjdwp:transport=dt_socket,address=10100,server=y,suspend=n',
tomcatuser => 'tomcat',
tomcat_users_xml_template => 'tomcat/instance/iqn-tomcat-users.xml.erb',
setenv_sh_template => "tomcat/instance/setenv.sh.erb"
}

This would set the ports to whatever you want, and use the templates.

Thanks,
Jason.

Jason Looney | IQNavigator | Data Architect
Office: (303) 713-9286 • Mobile: (303) 883-6476 • [email protected]:[email protected]
6465 Greenwood Plaza Blvd. • Suite 800 • Centennial, CO • 80111 • USA

This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

From: Avinash Kumar Singh [mailto:[email protected]]
Sent: Tuesday, July 22, 2014 7:04 AM
To: example42/puppet-tomcat
Subject: [puppet-tomcat] Pass parameters from nodes.pp (#19)

Hi ,
Can u please guide us how to pass parameters from nodes.pp as against any templates
defined in this module.


Reply to this email directly or view it on GitHubhttps://github.com//issues/19.

@alvagante
Copy link
Member

Thnx @looney1 for the reply, have not much time these days, so this is very appreciated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants