From 3b1b6f2fd6b101fa8e8adeeea1a76966680b258d Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 20 Sep 2012 16:44:11 +0000 Subject: [PATCH] Fix Gerrit CLA and Contact Store on review-dev. * modules/openstack_project/manifests/gerrit.pp (openstack_project::gerrit): Set defaults for contactstore, contactstore_appsec, contactstore_pubkey and contactstore_url since openstack_project::review isn't setting any yet. * modules/openstack_project/manifests/review_dev.pp (openstack_project::review_dev): Retrieve values for cla_description, cla_file, cla_id and cla_name from openstack::gerrit where they're defined. Change-Id: I010a8cffd2f5c2bd1c04f7f8d5b9a4089551e69f Reviewed-on: https://review.openstack.org/13378 Reviewed-by: Clark Boylan Approved: Monty Taylor Reviewed-by: Monty Taylor Tested-by: Jenkins --- modules/openstack_project/manifests/gerrit.pp | 8 ++++---- modules/openstack_project/manifests/review_dev.pp | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index f4b48b374f..88e6c02b5e 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -23,10 +23,10 @@ class openstack_project::gerrit ( $httpd_maxthreads='', $httpd_maxwait='', $war, - $contactstore, - $contactstore_appsec, - $contactstore_pubkey, - $contactstore_url, + $contactstore=false, + $contactstore_appsec='', + $contactstore_pubkey='', + $contactstore_url='', $cla_description='OpenStack Individual Contributor License Agreement', $cla_file='static/cla.html', $cla_id='2', diff --git a/modules/openstack_project/manifests/review_dev.pp b/modules/openstack_project/manifests/review_dev.pp index cdfa08cef9..6974897ab8 100644 --- a/modules/openstack_project/manifests/review_dev.pp +++ b/modules/openstack_project/manifests/review_dev.pp @@ -5,6 +5,10 @@ class openstack_project::review_dev ( $email_private_key, $contactstore_appsec, $contactstore_pubkey, + $cla_description=$openstack_project::gerrit::cla_description, + $cla_file=$openstack_project::gerrit::cla_file, + $cla_id=$openstack_project::gerrit::cla_id, + $cla_name=$openstack_project::gerrit::cla_name, $sysadmins = [] ) { class { 'openstack_project::gerrit':