1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-09-19 15:30:34 +00:00

Compare commits

...

6 Commits

5 changed files with 28 additions and 13 deletions

View File

@ -14,7 +14,7 @@ do_redmine_installer: yes
do_imap_fetch: yes # install the redmine_receive_imap template script
remote_scratch_path: /vagrant/scratch
nginx_pem: redmine.vm-rsa.pem
installer_package_name: easyredmine_2016_stable_u2072_vVersion_10_2_0.zip
installer_package_name: installation-package_latest_43921320-9957-4066-9e2c-bfb611968507_2021-03-10.zip
installer_package_path: '{{ remote_scratch_path }}/{{ installer_package_name }}'
installer_package_url: 'http://software.apidb.org/source/easyredmine/{{ installer_package_name }}'
redmine_db_dump_file: '{{ remote_scratch_path }}/redmine_dump.sql.gz'
@ -37,7 +37,7 @@ smtp_authentication: plain
smtp_enable_starttls: yes
smtp_openssl_verify_mode: peer
swap_add_mb: 512
ruby_version: 2.7.1
ruby_version: 2.6.6
is_production_vm: no
redmine_files_nfs_mount: '' # /mnt/redminefiles
redmine_files_nfs_source: '' # 171.26.20.75:/srv/easyredmine
@ -45,6 +45,10 @@ _redmine_db_import_file: /tmp/redmine_dump.sql
_redmine_db_import_success: /tmp/redmine_db_import_success
_redmine_install_wrapper: '/home/{{ redmine_owner }}/install_wrapper'
firewall_addrs:
- 192.168.0.0/16
- 172.16.0.0/16
# rvm1-ansible module vars
rvm1_rubies:
- 'ruby-{{ ruby_version }}'

View File

@ -1,6 +1,20 @@
- name: install mysql, mariadb packages
- name: Download MariaDB installation script
get_url:
url: https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
dest: '{{ remote_scratch_path }}/mariadb_repo_setup'
mode: '0700'
- name: Install MariaDB repo via script
shell: '{{ remote_scratch_path }}/mariadb_repo_setup'
args:
creates: /etc/yum.repos.d/mariadb.repo
become: yes
- name: Install MariaDB
yum:
name: ['mysql-devel', 'mariadb-server', 'MySQL-python']
name: ['mysql-devel', 'MariaDB-server', 'MySQL-python', 'MariaDB-shared']
state: present
update_cache: yes
become: yes
- name: manage MySql/MariaDB database service
@ -42,6 +56,7 @@
target: '{{ _redmine_db_import_file }}'
login_user: '{{ mysql_admin_login }}'
login_password: '{{ mysql_admin_password }}'
become: yes
register: redmine_db_import
when: do_redmine_db_import == True and (redmine_db_import_done.stat.exists == False or redmine_db_created is changed)

View File

@ -27,11 +27,7 @@
rich_rule: 'rule service name="ssh" family="ipv4" source address="{{ item }}" accept'
permanent: true
state: enabled
with_items:
- 128.192.75.0/24
- 192.168.0.0/16
- 172.16.0.0/16
- 128.91.49.0/24
with_items: "{{ firewall_addrs }}"
become: yes
notify: restart firewalld
when: is_production_vm == True

View File

@ -10,12 +10,12 @@
tags: database
when: do_database_management == True
- import_tasks: redmine.yml
- import_tasks: redmine.yml
tags: redmine
- import_tasks: nginx.yml
- import_tasks: nginx.yml
tags: nginx
- import_tasks: attachments_storage.yml
tags: attachments_storage
when: is_production_vm == True
when: is_production_vm == True and do_nfs_storage == True

View File

@ -1,4 +1,4 @@
- name: install redmine package depdendencies
- name: install redmine package dependencies
yum:
name: ['mysql-devel', 'unzip', 'rubygems', 'ruby-devel', 'libuuid-devel',
'zlib-devel', 'openssl-devel', 'gcc-c++', 'ImageMagick-devel',