gerrit
: Install and configure Gerrit
gerrit::params
: It sets variables according to platform.
gerrit::config
: Set git config attributesgerrit::folder
: Define to create directories inside gerrit target pathgerrit::hook
: Define to create gerrit hookgerrit::plugin
: Define to install gerrit pluginsgerrit::repository
: Define to create empty git bare repositories
Install and configure Gerrit
class { 'gerrit':
source => '/vagrant/gerrit-2.8.1.war',
target => '/opt/gerrit'
}
The following parameters are available in the gerrit
class:
source
target
auth_type
canonicalweburl
httpd_protocol
httpd_hostname
httpd_port
configure_gitweb
database_backend
database_hostname
database_name
database_password
database_username
download_scheme
git_package
gitweb_cgi_path
gitweb_package
java_package
install_user
install_git
install_gitweb
install_java
install_java_mysql
ldap_accountbase
ldap_accountpattern
ldap_accountemailaddress
ldap_accountfullname
ldap_accountmemberfield
ldap_accountsshusername
ldap_groupbase
ldap_groupname
ldap_grouppattern
ldap_groupmemberpattern
ldap_password
ldap_server
ldap_sslverify
ldap_timeout
ldap_username
smtp_server
smtp_port
smtp_encryption
smtp_user
smtp_password
mysql_java_connector
mysql_java_package
manage_service
user
extra_folders
Data type: Any
The path to the gerrit.war file
Data type: Any
The path to install gerrit to
Data type: Any
Auth type (ldap, http, ...)
Default value: 'OPENID'
Data type: Any
Canonical web url used in several places by gerrit
Default value: 'http://127.0.0.1:8080/'
Data type: Any
The protocol used by gerrit. Options : http, https, proxy-http, proxy-https
Default value: 'http'
Data type: Any
The hostname on wich gerrit will be reachable. Default any.
Default value: '*'
Data type: Any
The port on wich gerrit will be reachable
Default value: 8080
Data type: Any
Should we adapt gerrit configuration to support gitweb. Boolean.
Default value: true
Data type: Any
Database backend. currently mysql and h2 are supported
Default value: 'h2'
Data type: Any
Database hostname (mysql)
Default value: undef
Data type: Any
Database name (h2 and mysql)
Default value: 'db/ReviewDB'
Data type: Any
Database name (mysql)
Default value: undef
Data type: Any
Database username (mysql)
Default value: undef
Data type: Any
Download scheme (ssh, http, ...)
Default value: ['ssh', 'anon_http', 'http']
Data type: Any
The name of the git package
Default value: $gerrit::params::git_package
Data type: Any
Path to the gitweb cgi executable
Default value: $gerrit::params::gitweb_cgi_path
Data type: Any
The name of the gitweb package
Default value: $gerrit::params::gitweb_package
Data type: Any
The name of the java package
Default value: $gerrit::params::java_package
Data type: Any
Should this module create the user. Boolean
Default value: true
Data type: Any
Should this module install git. Boolean
Default value: true
Data type: Any
Should this module install gitweb. Boolean
Default value: true
Data type: Any
Should this module install java. Boolean
Default value: true
Data type: Any
Should this module install java mysql connector. Boolean
Default value: true
Data type: Any
The base dn for the accounts
Default value: undef
Data type: Any
The query pattern to use when searching for a user account. format like "(&(objectClass=inetOrgPerson)(cn=${username}))"
Default value: undef
Data type: Any
The name of an attribute on the user account object which contains the user's Internet email address format like "mail"
Default value: undef
Data type: Any
The name of an attribute on the user account object which contains the groups the user is part of format like "memberOf"
Default value: undef
Data type: Any
The name of an attribute on the user account object which contains the groups the user is part of. Typically used for Active Directory and FreeIPA servers.
Default value: undef
Data type: Any
The name of an attribute on the user account object which contains the initial value for the user's SSH username field in Gerrit format like "cn"
Default value: undef
Data type: Any
The base dn for the groups
Default value: undef
Data type: Any
Name of the attribute on the group object which contains the value to use as the group name in Gerrit
Default value: undef
Data type: Any
Query pattern used when searching for an LDAP group to connect to a Gerrit group.
Default value: undef
Data type: Any
Query pattern to use when searching for the groups that a user account is currently a member of
Default value: undef
Data type: Any
The ldap password to bind to
Default value: undef
Data type: Any
The ldap server address
Default value: undef
Data type: Any
If false and $ldap_server is an ldaps:// style URL, Gerrit will not verify the server certificate when it connects to perform a query.
Default value: undef
Data type: Any
The read timeout for an LDAP operation. The value is in the usual time-unit format like "1 s", "100 ms", etc..
Default value: undef
Data type: Any
The ldap user to bind to
Default value: undef
Data type: Any
The SMTP server address
Default value: undef
Data type: Any
The SMTP server port
Default value: undef
Data type: Any
The SMTP encryption
Default value: undef
Data type: Any
The SMTP user
Default value: undef
Data type: Any
The SMTP password
Default value: undef
Data type: Any
The name of the java connector file
Default value: $gerrit::params::mysql_java_connector
Data type: Any
The name of the java connector package
Default value: $gerrit::params::mysql_java_package
Data type: Any
Should this module launch the service.
Default value: true
Data type: Any
The user used to install gerrit
Default value: 'gerrit'
Data type: Any
Extra folder to create on gerrit home directory
Default value: ['hooks', 'plugins']
Set git config attributes
The following parameters are available in the gerrit::config
defined type:
The attribute name
Data type: Any
The value of thie git config attribute.
Data type: Any
Manage the state of this git config attribute.
Default value: present
Data type: Any
The file in which the git config attribute should be set.
Default value: "${gerrit::target}/etc/gerrit.config"
Data type: Any
The owner of configuration
Default value: 'gerrit'
Define to create directories inside gerrit target path
The following parameters are available in the gerrit::folder
defined type:
The folder name
Data type: Any
Manage the state of this directory inside gerrit target path
Default value: 'directory'
Define to create gerrit hook
The following parameters are available in the gerrit::hook
defined type:
The hook name
Data type: Any
Manage the state of this gerrit hook.
Default value: 'present'
Data type: Any
The source of this hook. Can be any value valid for the file
source
parameter.
Default value: undef
Data type: Any
The content of this hook. Can be any value valid for the file
content
parameter.
Default value: undef
Define to install gerrit plugins
The following parameters are available in the gerrit::plugin
defined type:
The plugin name
Data type: Any
The source of this plugins. Can be any value valid for the file
source
parameter.
Data type: Any
Manage the state of this gerrit plugin.
Default value: 'present'
Define to create empty git bare repositories
The following parameters are available in the gerrit::repository
defined type:
The repository name