jpnewman.gerrit

jpnewman.gerrit

Ansible 角色 构建状态

这是一个用于安装Gerrit的Ansible角色,功能如下:

  • gitweb
  • jeepyb

要求

Ansible 2.x

  • retr0h.logrotate

请更新你的 ansible.cfg 文件以包含库。

例如:

library = ../../roles

角色变量

变量 描述 默认值
gerrit_version Gerrit版本
gerrit_url Gerrit下载链接
gerrit_version 2.11.9
gerrit_url https://www.gerritcodereview.com/download/gerrit-{{ gerrit_version }}.war
gerrit_user gerrit
gerrit_group gerrit
gerrit_user_home /var/gerrit
gerrit_dir "{{ gerrit_user_home }}/review"
gerrit_config gerrit_config对象
gerrit_database_type MYSQL
gerrit_database_mysql gerrit_database_mysql对象
gerrit_index_type LUCENE
gerrit_auth_type HTTP
gerrit_container gerrit_container对象
gerrit_sshd gerrit_sshd对象
gerrit_httpd gerrit_httpd对象
gerrit_cache gerrit_cache对象
gerrit_receive gerrit_receive对象
gerrit_plugins gerrit_plugins对象
gerrit_readonly_mode no
gerrit_site_logo logo.png
gerrit_site_logo_alt logo
gerrit_site_header 代码审查
gerrit_site_css_file GerritSite.css

对象

gerrit_config对象 描述 默认值
basePath git
canonicalWebUrl http://localhost
gerrit_database_mysql对象 描述 默认值
hostname localhost
database gerrit
username gerrit
password gerrit
url "jdbc:mysql://localhost:3306/gerrit?user=gerrit&password=gerrit&useUnicode=false&characterEncoding=latin1"
gerrit_container对象 描述 默认值
heapLimit 4g
javaOptions -server -XX:+PrintGCDetails -XX:MaxPermSize=256M -Xloggc:/var/gerrit/review/logs/gc.log -Djavax.net.ssl.trustStore=/var/gerrit/review/etc/cacerts -Djavax.net.ssl.trustStorePassword=changeit
user gerrit
gerrit_sshd对象 描述 默认值
listenAddress "*:29418"
threads 32
gerrit_httpd对象 描述 默认值
listenUrl proxy-https://127.0.0.1:8080/
gerrit_cache对象 描述 默认值
directory cache
gerrit_receive对象 描述 默认值
checkReferencedObjectsAreReachable false
gerrit_plugins对象 描述 默认值
allowRemoteAdmin true
Bouncy Castle 描述 默认值
gerrit_bouncycastle_jars [http://repo2.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/1.52/bcprov-jdk15on-1.52.jar,
http://repo2.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/1.52/bcpkix-jdk15on-1.52.jar]

https://code.google.com/p/gerrit/issues/detail?id=4056

插件 描述 默认值
gerrit_war_plugins []
gerrit_plugins_folder plugins
Jeepyb 描述 默认值
gerrit_install_jeepyb true
gerrit_jeepyb_run_user gerrit
gerrit_jeepyb_github_repo https://github.com/openstack-infra/jeepyb.git
gerrit_jeepyb_github_version master
gerrit_jeepyb_path /opt/jeepyb
gerrit_jeepyb_log_folder /var/log/gerrit
gerrit_jeepyb_expire_old_reviews_log_file expire_reviews.log
gerrit_jeepyb_virtualenv_path "{{ gerrit_jeepyb_path }}/venv"
gerrit_jeepyb_virtualenv_version python2.7

依赖

  • jpnewman.java
  • jpnewman.apache
  • retr0h.logrotate

示例剧本

- hosts: servers
  roles:
     - { role: jpnewman.gerrit, tags: ["gerrit"] }

测试

有关测试模板的更多信息,请阅读./tests/templates/README.md

许可证

MIT / BSD

作者信息

约翰·保罗·纽曼

关于项目

Gerrit

安装
ansible-galaxy install jpnewman.gerrit
许可证
mit
下载
83
拥有者
Software Engineer with DevOps working on both Windows and *nix.