Git Product home page Git Product logo

redmine-update's Introduction

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

redmine-update's People

Contributors

ryouma-nagare avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.