Upgrade review.openstack.org to Gerrit 2.13

This change can't quite do the upgrade itself unfortunately. Instead the
upgrade should be performed as described at
https://etherpad.openstack.org/p/gerrit-2.13.-upgrade-steps then this
change should be merged before puppet is reenabled on that node. This
ensures that puppet wants to see the post upgrade state preventing it
from undoing anything.

Change-Id: Ide9e89542ae4203d70b5480475993d79259a3840
This commit is contained in:
Clark Boylan 2017-09-17 20:40:12 -07:00
parent 7af2afebaf
commit 6827cea43d

View File

@ -91,6 +91,7 @@ class openstack_project::review (
url => $project_config_repo,
}
$accountpatchreviewdb_url = "jdbc:mysql://${mysql_host}:3306/accountPatchReviewDb?characterSetResults=utf8&characterEncoding=utf8&connectionCollation=utf8_bin&useUnicode=yes&user=gerrit2&password=${mysql_password}"
class { 'openstack_project::gerrit':
java_home => $java_home,
git_http_url => 'https://git.openstack.org/',
@ -124,7 +125,7 @@ class openstack_project::review (
httpd_maxthreads => '100',
httpd_maxqueued => '200',
war =>
'http://tarballs.openstack.org/ci/gerrit/gerrit-v2.11.4.22.e0c0f29.war',
'http://tarballs.openstack.org/ci/gerrit/gerrit-v2.13.9.4.2a605d5.war',
acls_dir => $::project_config::gerrit_acls_dir,
notify_impact_file => $::project_config::gerrit_notify_impact_file,
projects_file => $::project_config::jeepyb_project_file,
@ -135,6 +136,7 @@ class openstack_project::review (
github_project_password => $github_project_password,
mysql_host => $mysql_host,
mysql_password => $mysql_password,
accountpatchreviewdb_url => $accountpatchreviewdb_url,
email_private_key => $email_private_key,
token_private_key => $token_private_key,
swift_username => $swift_username,
@ -178,12 +180,12 @@ class openstack_project::review (
{
name => 'changeid',
match => '(I[0-9a-f]{8,40})',
link => '/#q,$1,n,z',
link => '/#/q/$1',
},
{
name => 'gitsha',
match => '(<p>|[\\s(])([0-9a-f]{40})(</p>|[\\s.,;:)])',
html => '$1<a href=\"/#q,$2,n,z\">$2</a>$3',
html => '$1<a href=\"/#/q/$2\">$2</a>$3',
},
],
its_plugins => [
@ -292,8 +294,9 @@ class openstack_project::review (
require => $::project_config::config_dir,
}
gerrit::plugin { 'javamelody': version => '3fefa35' }
gerrit::plugin { 'its-storyboard': version => 'a9cb131' }
gerrit::plugin { 'javamelody': version => 'v2.13.3.e4233d6' }
gerrit::plugin { 'its-storyboard': version => '805f9ac' }
class { 'gerritbot':
nick => 'openstackgerrit',