项目作者: mosaos

项目描述 :
Ansible playbook for installing Redmine4 on CentOS8.
高级语言: Shell
项目地址: git://github.com/mosaos/redmine-mariadb-centos-ansible.git
创建时间: 2020-09-28T08:25:58Z
项目社区:https://github.com/mosaos/redmine-mariadb-centos-ansible

开源协议:MIT License

下载


redmine-mariadb-centos-ansible

What’s this

Ansible playbook for installing Redmine4 on CentOS8.
Several plugins and themes will also be installed.

Please comment out unnecessary plugins/themes.

System

  • Ansible 2.9
  • Redmine 4.1
  • CentOS 8
  • MariaDB 10
  • Apache 2.4

Requirement

Prepare CentOS8 minimum installed.

*If you want to try this, You may use a virtual environment such as VirtualBox.

Inventory

  • production
    This inventory is used when building Redmine with multiple hosts.
    The following 3 hosts are required.
    • Ansible
    • Redmine
    • Database
  • staging
    This inventory is used when installing both DB & Redmine on one host.

Install

Install ansible and git

Execute the following on CentOS 8 with the minimum installation.
If you are a non-root user, please sudo as appropriate.

  1. dnf install -y epel-release
  2. dnf install -y ansible git

Clone this project

Clone this project in a directory of your choice.

  1. git clone <project_url>

Set roles

Installation of Docker and some plugins are disabled by default.

If you want to install these, see the file below and uncomment the commented out roles.

  • site.yml
  • redmine_plugins.yml

Set variables

  • Edit inventory file ( production )

    • production
      When installing on multiple hosts, edit (& use) this.
      Set the installation host.

      1. [redmine_servers]
      2. redmine ansible_host=192.168.56.102
      3. [mariadb_servers]
      4. mariadb ansible_host=192.168.56.103

      Also, set the user & password that Ansible uses to connect to destination hosts with ssh.

      1. [redmine:vars]
      2. ansible_user=root
      3. ansible_ssh_pass=Change_this
    • staging
      When installing on one host.
      No need to edit.
  • Edit group_vars/redmine
    Describes the settings shared by the Redmine/MariaDB server.
    Please change the DB related settings as appropriate.

    Set the host of redmine.
    If you want to configure Redmine/MariaDB as a different host, change it to the Redmine hostname or IP address instead of localhost.

    1. # Common settings
    2. # root password of MariaDB
    3. db_passwd_root: Change_this
    4. # Remine database name
    5. db_name_redmine: db_redmine
    6. # MariaDB user
    7. db_user_redmine: user_redmine
    8. # MariaDB password
    9. db_passwd_redmine: Change_this
    10. # Work directory
    11. work_dir: /tmp/redmine-setup
    12. # Redmine host (Allow db connection from this address)
    13. # and use this vars for checking production or staging.
    14. redmine_host: localhost
  • Edit group_vars/redmine-servers
    If you want to configure Redmine/MariaDB as a different host, change it to the DB hostname or IP address instead of localhost.
    1. # Redmine settings
    2. # DB hostname
    3. db_host_redmine: 192.168.56.103
  • Edit group_vars/mariadb-servers
    Nothing to edit.

For settings other than the above, change as necessary.

Run ansible playbook

In the case of multiple hosts,

  1. ansible-playbook -i production site.yml

In the case of one host,

  1. ansible-playbook -i staging site.yml

Access to Redmine

After the installation is completed, Access to Redmine URL.

  1. http://<redmine-host>/redmine

The initial administrator account is as follows.

  • account : admin
  • password: admin

Plugins

The following plugins installation are available.
Please refer the plugin site for details.


SCM Creator plugin

When installing the SCM Creator plugin, Subversion and Git server are also installed.

If you set SCM (Subversion or Git) on New Project page, a repository with the same name as the project identifier will be created.
( Created under the /var/opt/svn or /var/opt/git )

Repository URL

Subversion

  1. http://<redmine-host>/svn/<project-identifier>

Git

  1. http://<redmine-host>/git/<project-identifier>.git

Authentication

You can authenticate with the same user/password as Redmine.

Add users who use the repository as members of the project.