Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

redmine-update

概要

LinuxにインストールしたRedmineの本体/プラグイン/テーマをアップデートするためのplaybook

前提条件

  • systemdを採用しているLinux
  • Redmineをsvn、またはRedMicaをgitでインストールしている
  • プラグイン/テーマをgitでインストールしている
  • svn/git/bundle/awk コマンドをインストールしている
  • ログインユーザがパスワード無しでsudoできる

環境依存の設定

ホスト設定

  • inventory/hosts
    • ホスト名:任意の名前(ラベル)
    • ansible_host:FQDN または IP
    • ansible_user:SSHでログインするユーザ名
    • ansible_password:パスワード
    • ansible_private_key_file:鍵ファイル名

※ansible_password/ansible_private_key_file はいずれかを指定

ホスト変数設定

host_vars/ホスト名 を作成する

プラグインのブランチ指定

  • plugins
  • pluginX
    • plugin_name: 対象のプラグインディレクトリ名
    • branch_name: 固定したいブランチ名
  1. 複数指定する場合はpluginXのブロックを繰り返し指定する
  2. 常に最新に更新するプラグインは指定不要
  3. ブランチ指定がない場合は、pluginsを丸ごとコメントアウトする。

シェルスクリプト内の変数

  • shell:シェルのフルパス
  • redmine_dir:Redmineのインストールディレクトリ
  • redmine_owner:redmine_dirのオーナユーザ
  • bundle_bin/svn_bin/git_bin:各コマンド名
  • redmine_ownerで各コマンドにパスが通っていない場合はフルパスを記述

再起動するサービス名

  • services:シェルスクリプト実行後にsystemctl restartするサービス名のリスト

シェル実行結果の表示フラグ

  • debug_stdout: 標準出力を表示する場合はtrue
  • debug_stderr: 標準エラー出力を表示する場合はtrue

実行方法

ansible-playbook -i ./inventory/hosts redmine-update.yml

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors