Skip to content

Commit

Permalink
Fixing upgrade issue with not notifying the service to restart after …
Browse files Browse the repository at this point in the history
…upgrade.
  • Loading branch information
brycejohnson committed Oct 31, 2012
1 parent d6ddb54 commit 58786a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jira.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#
# Atlassian jira Git Enterprise Source Control Server
jira_name: jira
jira_version: 5.1.4
jira_version: 5.1.7
jira_package_format: zip

# Directory where the webapp will run from
Expand Down
3 changes: 3 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,23 @@
content => template('jira/setenv.sh.erb'),
mode => '0755',
require => Class['jira::install'],
notify => Class['jira::service'],
}

if "${jira::params::db}" == 'postgresql' {
file { "${jira::params::homedir}/dbconfig.xml":
content => template('jira/dbconfig.postgres.xml.erb'),
mode => '0600',
require => [Class['jira::install'],Exec['mkdirp-homedir-jira']],
notify => Class['jira::service'],
}
}
if "${jira::params::db}" == 'mysql' {
file { "${jira::params::homedir}/dbconfig.xml":
content => template('jira/dbconfig.mysql.xml.erb'),
mode => '0600',
require => [Class['jira::install'],Exec['mkdirp-homedir-jira']],
notify => Class['jira::service'],
}
}
}
2 changes: 0 additions & 2 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@
require => Class['jira::config'],
}
}
#status => "pg_lsclusters -h | awk 'BEGIN {rc=0} {if (\$4 != \"online\") rc=3} END { exit rc }'",
#/opt/java/jdk1.6.0_33/bin/jps |grep Bootstrap # but has high risk for any tomcadt

0 comments on commit 58786a3

Please sign in to comment.