Advertisement
keith_shannon

init.pp

May 18th, 2015
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.00 KB | None | 0 0
  1. class jira (
  2.  
  3.   # Jira Settings
  4.   $version      = '6.4.3',
  5.   $product      = 'jira',
  6.   $format       = 'tar.gz',
  7.   $installdir   = '/opt/jira',
  8.   $homedir      = '/opt/jira_home',
  9.   $user         = 'jira',
  10.   $group        = 'jira',
  11.  
  12.   # Database Settings
  13.   $db           = 'mysql',
  14.   $dbuser       = 'dbusernamehere',
  15.   $dbpassword   = 'passwordhere',
  16.   $dbserver     = 'serveriphere',
  17.   $dbname       = 'dbnamehere',
  18.   $dbport       = '3306',
  19.   $dbdriver     = 'com.mysql.jdbc.Driver',
  20.   $dbtype       = 'mysql',
  21.   $poolsize     = '20',
  22.  
  23.   # Configure database settings if you are pooling connections
  24.   $enable_connection_pooling = false,
  25.   $poolMinSize               = 20,
  26.   $poolMaxSize               = 20,
  27.   $poolMaxWait               = 30000,
  28.   $validationQuery           = 'select 1',
  29.   $minEvictableIdleTime      = 60000,
  30.   $timeBetweenEvictionRuns   = 300000,
  31.   $poolMaxIdle               = 20,
  32.   $poolRemoveAbandoned       = true,
  33.   $poolRemoveAbandonedTimout = 300,
  34.   $poolTestWhileIdle         = true,
  35.   $poolTestOnBorrow          = true,
  36.  
  37.   # JVM Settings
  38.   $javahome     = '/usr/lib/jvm/java-1.7.0/',
  39.   $jvm_xms      = '4096m',
  40.   $jvm_xmx      = '8192m',
  41.   $jvm_optional = '-XX:-HeapDumpOnOutOfMemoryError',
  42.   $java_opts    = '',
  43.  
  44.   # Misc Settings
  45.   $downloadURL  = 'http://www.atlassian.com/software/jira/downloads/binary/',
  46.  
  47.   # Manage service
  48.   $service_manage = true,
  49.   $service_ensure = running,
  50.  
  51.   # Tomcat Tunables
  52.   $tomcatMaxThreads  = '150',
  53.   $tomcatAcceptCount = '100',
  54.   # Reverse https proxy
  55.   $proxy = {
  56.     scheme    => "https",
  57.     proxyName => "proxyusernamehere",
  58.     proxyPort => "443"
  59.   },
  60.  
  61. ) {
  62.  
  63.   if $jira::db != 'postgresql' and $jira::db != 'mysql' {
  64.     fail('jira db parameter must be postgresql or mysql')
  65.   }
  66.  
  67.   $webappdir    = "${installdir}/atlassian-${product}-${version}-standalone"
  68.   $dburl        = "jdbc:${db}://${dbserver}:${dbport}/${dbname}"
  69.  
  70.   include jira::install
  71.   include jira::config
  72.   include jira::service
  73.  
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement