Switch review.o.o to testmode
Also, cause testmode to disable manage-projects on gerrit servers. This will cause puppet to stop writing the replication config (but leave it in place on the production server) and also stop running manage-projects. This is so that we can spin up a new gerrit server without it immediately creating projects or replicating. Also, remove the gerrit::mysql module so we can replace it with a trove database. Again, the existing mysql databases should be untouched. Change-Id: I157993297ae8168064ef5b368d42dc93989aef21
This commit is contained in:
parent
e1f3c9051b
commit
8e9011171d
@ -375,6 +375,7 @@ class openstack_project::gerrit (
|
|||||||
require => Class['::gerrit']
|
require => Class['::gerrit']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($testmode == false) {
|
||||||
exec { 'manage_projects':
|
exec { 'manage_projects':
|
||||||
command => '/usr/local/bin/manage-projects',
|
command => '/usr/local/bin/manage-projects',
|
||||||
timeout => 900, # 15 minutes
|
timeout => 900, # 15 minutes
|
||||||
@ -391,6 +392,7 @@ class openstack_project::gerrit (
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
file { '/home/gerrit2/review_site/bin/set_agreements.sh':
|
file { '/home/gerrit2/review_site/bin/set_agreements.sh':
|
||||||
ensure => absent,
|
ensure => absent,
|
||||||
}
|
}
|
||||||
|
@ -76,15 +76,8 @@ class openstack_project::review (
|
|||||||
$swift_password = ''
|
$swift_password = ''
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# Setup MySQL
|
|
||||||
class { 'gerrit::mysql':
|
|
||||||
mysql_root_password => $mysql_root_password,
|
|
||||||
database_name => 'reviewdb',
|
|
||||||
database_user => 'gerrit2',
|
|
||||||
database_password => $mysql_password,
|
|
||||||
}
|
|
||||||
|
|
||||||
class { 'openstack_project::gerrit':
|
class { 'openstack_project::gerrit':
|
||||||
|
testmode => true,
|
||||||
ssl_cert_file =>
|
ssl_cert_file =>
|
||||||
'/etc/ssl/certs/review.openstack.org.pem',
|
'/etc/ssl/certs/review.openstack.org.pem',
|
||||||
ssl_key_file =>
|
ssl_key_file =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user