Merge "Pass $mysql_password through to gerrit class"
This commit is contained in:
commit
aac5fe4e86
@ -1,5 +1,7 @@
|
|||||||
# Install and maintain Gerrit Code Review.
|
# Install and maintain Gerrit Code Review.
|
||||||
# params:
|
# params:
|
||||||
|
# mysql_password:
|
||||||
|
# The password with which gerrit connects to mysql.
|
||||||
# vhost_name:
|
# vhost_name:
|
||||||
# used in the Apache virtual host, eg., review.example.com
|
# used in the Apache virtual host, eg., review.example.com
|
||||||
# canonicalweburl:
|
# canonicalweburl:
|
||||||
@ -74,6 +76,7 @@
|
|||||||
# TODO: make more gerrit options configurable here
|
# TODO: make more gerrit options configurable here
|
||||||
#
|
#
|
||||||
class gerrit(
|
class gerrit(
|
||||||
|
$mysql_password,
|
||||||
$war = '',
|
$war = '',
|
||||||
$email_private_key = '',
|
$email_private_key = '',
|
||||||
$vhost_name = $::fqdn,
|
$vhost_name = $::fqdn,
|
||||||
@ -228,6 +231,7 @@ class gerrit(
|
|||||||
|
|
||||||
# Skip replication if we're in test mode
|
# Skip replication if we're in test mode
|
||||||
if ($testmode == false) {
|
if ($testmode == false) {
|
||||||
|
# Template uses $replication
|
||||||
file { '/home/gerrit2/review_site/etc/replication.config':
|
file { '/home/gerrit2/review_site/etc/replication.config':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
@ -240,6 +244,37 @@ class gerrit(
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Gerrit sets these permissions in 'init'; don't fight them.
|
# Gerrit sets these permissions in 'init'; don't fight them.
|
||||||
|
# Template uses:
|
||||||
|
# - $canonicalweburl
|
||||||
|
# - $database_poollimit
|
||||||
|
# - $gerrit_contributor_agreement
|
||||||
|
# - $gerrit_auth_type
|
||||||
|
# - $openidssourl
|
||||||
|
# - $ldap_server
|
||||||
|
# - $ldap_username
|
||||||
|
# - $ldap_password
|
||||||
|
# - $ldap_account_base
|
||||||
|
# - $ldap_account_pattern
|
||||||
|
# - $ldap_account_email_address
|
||||||
|
# - $smtpserver
|
||||||
|
# - $sendmail_from
|
||||||
|
# - $java_home
|
||||||
|
# - $container_heaplimit
|
||||||
|
# - $core_packedgitopenfiles
|
||||||
|
# - $core_packedgitlimit
|
||||||
|
# - $core_packedgitwindowsize
|
||||||
|
# - $sshd_listen_address
|
||||||
|
# - $sshd_threads
|
||||||
|
# - $httpd_maxwait
|
||||||
|
# - $httpd_acceptorthreads
|
||||||
|
# - $httpd_minthreads
|
||||||
|
# - $httpd_maxthreads
|
||||||
|
# - $commentlinks
|
||||||
|
# - $enable_melody
|
||||||
|
# - $melody_session
|
||||||
|
# - $gitweb
|
||||||
|
# - $contactstore_appsec
|
||||||
|
# - $contactstore_url
|
||||||
file { '/home/gerrit2/review_site/etc/gerrit.config':
|
file { '/home/gerrit2/review_site/etc/gerrit.config':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'gerrit2',
|
owner => 'gerrit2',
|
||||||
@ -255,6 +290,7 @@ class gerrit(
|
|||||||
# Gerrit sets these permissions in 'init'; don't fight them. If
|
# Gerrit sets these permissions in 'init'; don't fight them. If
|
||||||
# these permissions aren't set correctly, gerrit init will write a
|
# these permissions aren't set correctly, gerrit init will write a
|
||||||
# new secure.config file and lose the mysql password.
|
# new secure.config file and lose the mysql password.
|
||||||
|
# Template uses $mysql_password, $email_private_key
|
||||||
file { '/home/gerrit2/review_site/etc/secure.config':
|
file { '/home/gerrit2/review_site/etc/secure.config':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'gerrit2',
|
owner => 'gerrit2',
|
||||||
@ -267,6 +303,16 @@ class gerrit(
|
|||||||
|
|
||||||
# Set up apache.
|
# Set up apache.
|
||||||
|
|
||||||
|
# Template uses:
|
||||||
|
# - $vhost_name
|
||||||
|
# - $serveradmin
|
||||||
|
# - $ssl_cert_file
|
||||||
|
# - $ssl_key_file
|
||||||
|
# - $ssl_chain_file
|
||||||
|
# - $canonicalweburl
|
||||||
|
# - $replicate_local
|
||||||
|
# - $contactstore
|
||||||
|
# - $robots_txt_source
|
||||||
apache::vhost { $vhost_name:
|
apache::vhost { $vhost_name:
|
||||||
port => 443,
|
port => 443,
|
||||||
docroot => 'MEANINGLESS ARGUMENT',
|
docroot => 'MEANINGLESS ARGUMENT',
|
||||||
@ -524,6 +570,7 @@ class gerrit(
|
|||||||
File['/home/gerrit2/review_site/lib'],
|
File['/home/gerrit2/review_site/lib'],
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
# Template uses $contactstore_pubkey
|
||||||
file { '/home/gerrit2/review_site/etc/contact_information.pub':
|
file { '/home/gerrit2/review_site/etc/contact_information.pub':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
# up for launchpad single sign on and bug/blueprint links
|
# up for launchpad single sign on and bug/blueprint links
|
||||||
|
|
||||||
class openstack_project::gerrit (
|
class openstack_project::gerrit (
|
||||||
|
$mysql_password,
|
||||||
$vhost_name = $::fqdn,
|
$vhost_name = $::fqdn,
|
||||||
$canonicalweburl = "https://${::fqdn}/",
|
$canonicalweburl = "https://${::fqdn}/",
|
||||||
$serveradmin = 'webmaster@openstack.org',
|
$serveradmin = 'webmaster@openstack.org',
|
||||||
@ -161,6 +162,7 @@ class openstack_project::gerrit (
|
|||||||
contactstore_appsec => $contactstore_appsec,
|
contactstore_appsec => $contactstore_appsec,
|
||||||
contactstore_pubkey => $contactstore_pubkey,
|
contactstore_pubkey => $contactstore_pubkey,
|
||||||
contactstore_url => $contactstore_url,
|
contactstore_url => $contactstore_url,
|
||||||
|
mysql_password => $mysql_password,
|
||||||
email_private_key => $email_private_key,
|
email_private_key => $email_private_key,
|
||||||
replicate_local => $replicate_local,
|
replicate_local => $replicate_local,
|
||||||
replication => $replication,
|
replication => $replication,
|
||||||
|
@ -118,6 +118,7 @@ class openstack_project::review (
|
|||||||
github_project_username => $github_project_username,
|
github_project_username => $github_project_username,
|
||||||
github_project_password => $github_project_password,
|
github_project_password => $github_project_password,
|
||||||
trivial_rebase_role_id => 'trivial-rebase@review.openstack.org',
|
trivial_rebase_role_id => 'trivial-rebase@review.openstack.org',
|
||||||
|
mysql_password => $mysql_password,
|
||||||
email_private_key => $email_private_key,
|
email_private_key => $email_private_key,
|
||||||
sysadmins => $sysadmins,
|
sysadmins => $sysadmins,
|
||||||
swift_username => $swift_username,
|
swift_username => $swift_username,
|
||||||
|
Loading…
Reference in New Issue
Block a user