Git Product home page Git Product logo

redmine-update2's Introduction

redmine-update2

概要

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

前提条件

  • systemdを採用しているLinux
  • Redmineをsvn、またはRedMicaをgitでインストールしている
  • プラグイン/テーマをgitでインストールしている
  • svn/git/bundle コマンドをインストールしている

環境依存の設定

ホスト設定

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

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

ホスト変数設定

host_vars/ホスト名 を作成する

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

  • plugins
    • "プラグイン名" : ブランチ名
  1. 複数指定する場合は行を繰り返し指定
  2. 常に最新に更新するプラグインは指定不要
  3. ブランチ指定がない場合は、 plugins: のみ残す
  4. plugins: を消した場合は、pluginのアップデートを行いません

ディレクトリなどの変数

  • shell:シェルのフルパス
  • redmine_dir:Redmineのインストールディレクトリ
  • redmine_owner:redmine_dirのオーナユーザ
  • http_proxy: プロキシURL
    • 不要な場合は空のまま
    • プラグイン/テーマを gitプロトコルでcloneしている場合は、redmine_owner~/.gitconfig に以下を追記
[url "https://"]
        insteadOf = git://

再起動するサービス名

  • services:アップデート後にsystemctl restartするサービス名のリスト

実行方法

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

redmine-update2's People

Contributors

ryouma-nagare avatar

Watchers

 avatar  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.