Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class jira (
- # Jira Settings
- $version = '6.4.3',
- $product = 'jira',
- $format = 'tar.gz',
- $installdir = '/opt/jira',
- $homedir = '/opt/jira_home',
- $user = 'jira',
- $group = 'jira',
- # Database Settings
- $db = 'mysql',
- $dbuser = 'dbusernamehere',
- $dbpassword = 'passwordhere',
- $dbserver = 'serveriphere',
- $dbname = 'dbnamehere',
- $dbport = '3306',
- $dbdriver = 'com.mysql.jdbc.Driver',
- $dbtype = 'mysql',
- $poolsize = '20',
- # Configure database settings if you are pooling connections
- $enable_connection_pooling = false,
- $poolMinSize = 20,
- $poolMaxSize = 20,
- $poolMaxWait = 30000,
- $validationQuery = 'select 1',
- $minEvictableIdleTime = 60000,
- $timeBetweenEvictionRuns = 300000,
- $poolMaxIdle = 20,
- $poolRemoveAbandoned = true,
- $poolRemoveAbandonedTimout = 300,
- $poolTestWhileIdle = true,
- $poolTestOnBorrow = true,
- # JVM Settings
- $javahome = '/usr/lib/jvm/java-1.7.0/',
- $jvm_xms = '4096m',
- $jvm_xmx = '8192m',
- $jvm_optional = '-XX:-HeapDumpOnOutOfMemoryError',
- $java_opts = '',
- # Misc Settings
- $downloadURL = 'http://www.atlassian.com/software/jira/downloads/binary/',
- # Manage service
- $service_manage = true,
- $service_ensure = running,
- # Tomcat Tunables
- $tomcatMaxThreads = '150',
- $tomcatAcceptCount = '100',
- # Reverse https proxy
- $proxy = {
- scheme => "https",
- proxyName => "proxyusernamehere",
- proxyPort => "443"
- },
- ) {
- if $jira::db != 'postgresql' and $jira::db != 'mysql' {
- fail('jira db parameter must be postgresql or mysql')
- }
- $webappdir = "${installdir}/atlassian-${product}-${version}-standalone"
- $dburl = "jdbc:${db}://${dbserver}:${dbport}/${dbname}"
- include jira::install
- include jira::config
- include jira::service
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement