jpnewman.gerrit

jpnewman.gerrit

Ansible Role Build Status

これはGerritをインストールするためのAnsibleロールです。以下が含まれます: -

  • gitweb
  • jeepyb

要件

Ansible 2.x

ライブラリ

  • retr0h.logrotate

あなたのansible.cfgファイルを更新してライブラリを追加してください。

library = ../../roles

ロール変数

変数 説明 デフォルト
gerrit_version Gerritのバージョン
gerrit_url GerritのダウンロードURL
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 いいえ
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.