LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-18-2015, 04:22 PM   #1
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Rep: Reputation: Disabled
new pp for JIRA<>mySQL


Getting

"Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find template 'jira/etc/rc.d/init.d/jira.erb' at /etc/puppet/environments/production/manifests/install.pp:62 on node jira.oracle"

error but how do I define the template?

[nodes.pp]

node 'jira.oracle' { class {'jira':} }


[init.pp]

class jira (

# Jira Settings
$version = '6.4.4',
$product = 'jira',
$format = 'tar.gz',
$installdir = '/opt/jira',
$homedir = '/opt/jira_home',
$user = 'jira',
$group = 'jira',

# Database Settings
$db = 'mysql',
$dbuser = 'jira',
$dbpassword = 'secret',
$dbserver = 'localhost',
$dbname = 'jiraDB',
$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/java/jdk1.8.0_45',
$jvm_xms = '4096m',
$jvm_xmx = '8192m',
$jvm_optional = '-XX:-HeapDumpOnOutOfMemoryError',
$java_opts = '',


# Manage service
$service_manage = true,
$service_ensure = running,


) {

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

}


[install.pp]

class jira::install {

require jira
require deploy

user { $jira::user:
comment => 'Jira daemon account',
shell => '/bin/true',
home => $jira::homedir,
password => '*',
password_min_age => '0',
password_max_age => '99999',
managehome => true,
} ->

file { $jira::installdir:
ensure => 'directory',
owner => $jira::user,
group => $jira::group,
}

deploy::file { "atlassian-${jira:roduct}-${jira::version}.${jira::format}":
target => "${jira::installdir}/atlassian-${jira:roduct}-${jira::version}-standalone",
url => $jira::downloadURL,
strip => true,
download_timout => 1800,
owner => $jira::user,
group => $jira::group,
notify => Exec["chown_${jira::webappdir}"],
} ->

file { $jira::homedir:
ensure => 'directory',
owner => $jira::user,
group => $jira::group,
} ->

file { "${jira::homedir}/import":
ensure => 'directory',
mode => 777
} ->

file { "${jira::homedir}/import/mail":
ensure => 'directory',
mode => 777
} ->

exec { "chown_${jira::webappdir}":
command => "/bin/chown -R ${jira::user}:${jira::group} ${jira::webappdir}",
refreshonly => true,
subscribe => User[$jira::user]
} ->


file { "${jira::webappdir}/logs/old":
ensure => 'directory',
owner => $jira::user,
group => $jira::group,
}

file { '/etc/init.d/jira':
content => template('jira/etc/rc.d/init.d/jira.erb'),
mode => '0755',
}


logrotate::rule { 'jira_catalina':
ensure => 'present',
path => "${jira::webappdir}/logs/catalina.*",
olddir => "${jira::webappdir}/logs/old",
rotate => 30,
rotate_every => 'day',
size => '500M',
compress => true,
copytruncate => true,
missingok => true,
}

}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
could use some help in hiera for mysql/jira (puppet newb) sndlt Linux - Server 0 05-16-2015 09:51 PM
Puppet - JIRA module not connecting to mySQL sndlt Linux - Server 0 05-13-2015 12:45 AM
system Error in jira tomcat vignesh4sh Linux - Server 5 01-13-2013 05:40 AM
Jira server startup error jayakumar01 Linux - Server 2 12-07-2011 01:44 PM
Tomcat - JIRA issue linuxguy08 Linux - Server 1 11-23-2010 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration