Guest User

Untitled

a guest
Mar 1st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. # /etc/puppet/modules/tomcat/manifests
  2.  
  3. class tomcat6 {
  4.  
  5. # define your resource type
  6.  
  7. define configuration($loglevel_default, $loglevel_httpclientapache, $loglevel_httpclientwire, $loglevel_sportex, $loglevel_lus, $loglevel_apache, $loglevel_springframework, $loglevel_quartz, $loglevel_apachecxf) {
  8. file { "/etc/tomcat6/log4j.properties": content => template("tomcat6/log4j_properties.erb") }
  9. }
  10.  
  11.  
  12. package { tomcat6: ensure => latest }
  13.  
  14. ### user info
  15.  
  16. $user = 'tomcat'
  17. $group = 'tomcat'
  18.  
  19. ### ports
  20.  
  21. # if USE_KEYSTORE = 'TRUE' the following needs to be defined:
  22. #
  23. # keystoreFile="<%= keystore_file %>"
  24. # keystorePass="<%= keystore_password %>"
  25. # truststoreFile="<%= truststore_file %>"
  26. # keystoreType="<%= keystore_type %>"
  27. # truststorePass="<%= truststore_password %>"
  28. # truststoreType="<%= truststore_type %>"
  29. # clientAuth="<%= client_auth %>" sslProtocol="TLS"
  30.  
  31. # $shutdown_port = '8005',
  32. # http_port => '8080',
  33. # https_port => '8443',
  34. # connection_timeout = '20000'
  35. # max_threads = '150'
  36. # USE_KEYSTORE = 'FALSE'
  37.  
  38.  
  39.  
  40. configuration { "/etc/tomcat6/log4j.properties": loglevel_default => 'DEBUG',
  41. loglevel_httpclientapache => $loglevel_default,
  42. loglevel_httpclientwire => $loglevel_default,
  43. loglevel_sportex => $loglevel_default,
  44. loglevel_lus => $loglevel_default,
  45. loglevel_apache => $loglevel_default,
  46. loglevel_springframework => $loglevel_default,
  47. loglevel_quartz => $loglevel_default,
  48. loglevel_apachecxf => $loglevel_default }
  49.  
  50. ### default config files
  51.  
  52.  
  53. }
Add Comment
Please, Sign In to add comment