mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-11-09 22:40:36 +00:00
Compare commits
6 Commits
609d46c0a9
...
6899d13217
Author | SHA1 | Date | |
---|---|---|---|
6899d13217 | |||
630a8f4f6e | |||
75d91737a4 | |||
0f6eebb157 | |||
d2f4d0841e | |||
c66e0a628f |
@ -14,7 +14,7 @@ do_redmine_installer: yes
|
|||||||
do_imap_fetch: yes # install the redmine_receive_imap template script
|
do_imap_fetch: yes # install the redmine_receive_imap template script
|
||||||
remote_scratch_path: /vagrant/scratch
|
remote_scratch_path: /vagrant/scratch
|
||||||
nginx_pem: redmine.vm-rsa.pem
|
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_path: '{{ remote_scratch_path }}/{{ installer_package_name }}'
|
||||||
installer_package_url: 'http://software.apidb.org/source/easyredmine/{{ 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'
|
redmine_db_dump_file: '{{ remote_scratch_path }}/redmine_dump.sql.gz'
|
||||||
@ -37,7 +37,7 @@ smtp_authentication: plain
|
|||||||
smtp_enable_starttls: yes
|
smtp_enable_starttls: yes
|
||||||
smtp_openssl_verify_mode: peer
|
smtp_openssl_verify_mode: peer
|
||||||
swap_add_mb: 512
|
swap_add_mb: 512
|
||||||
ruby_version: 2.7.1
|
ruby_version: 2.6.6
|
||||||
is_production_vm: no
|
is_production_vm: no
|
||||||
redmine_files_nfs_mount: '' # /mnt/redminefiles
|
redmine_files_nfs_mount: '' # /mnt/redminefiles
|
||||||
redmine_files_nfs_source: '' # 171.26.20.75:/srv/easyredmine
|
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_db_import_success: /tmp/redmine_db_import_success
|
||||||
_redmine_install_wrapper: '/home/{{ redmine_owner }}/install_wrapper'
|
_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-ansible module vars
|
||||||
rvm1_rubies:
|
rvm1_rubies:
|
||||||
- 'ruby-{{ ruby_version }}'
|
- 'ruby-{{ ruby_version }}'
|
||||||
|
@ -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:
|
yum:
|
||||||
name: ['mysql-devel', 'mariadb-server', 'MySQL-python']
|
name: ['mysql-devel', 'MariaDB-server', 'MySQL-python', 'MariaDB-shared']
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: manage MySql/MariaDB database service
|
- name: manage MySql/MariaDB database service
|
||||||
@ -42,6 +56,7 @@
|
|||||||
target: '{{ _redmine_db_import_file }}'
|
target: '{{ _redmine_db_import_file }}'
|
||||||
login_user: '{{ mysql_admin_login }}'
|
login_user: '{{ mysql_admin_login }}'
|
||||||
login_password: '{{ mysql_admin_password }}'
|
login_password: '{{ mysql_admin_password }}'
|
||||||
|
become: yes
|
||||||
register: redmine_db_import
|
register: redmine_db_import
|
||||||
when: do_redmine_db_import == True and (redmine_db_import_done.stat.exists == False or redmine_db_created is changed)
|
when: do_redmine_db_import == True and (redmine_db_import_done.stat.exists == False or redmine_db_created is changed)
|
||||||
|
|
||||||
|
@ -27,11 +27,7 @@
|
|||||||
rich_rule: 'rule service name="ssh" family="ipv4" source address="{{ item }}" accept'
|
rich_rule: 'rule service name="ssh" family="ipv4" source address="{{ item }}" accept'
|
||||||
permanent: true
|
permanent: true
|
||||||
state: enabled
|
state: enabled
|
||||||
with_items:
|
with_items: "{{ firewall_addrs }}"
|
||||||
- 128.192.75.0/24
|
|
||||||
- 192.168.0.0/16
|
|
||||||
- 172.16.0.0/16
|
|
||||||
- 128.91.49.0/24
|
|
||||||
become: yes
|
become: yes
|
||||||
notify: restart firewalld
|
notify: restart firewalld
|
||||||
when: is_production_vm == True
|
when: is_production_vm == True
|
||||||
|
@ -18,4 +18,4 @@
|
|||||||
|
|
||||||
- import_tasks: attachments_storage.yml
|
- import_tasks: attachments_storage.yml
|
||||||
tags: attachments_storage
|
tags: attachments_storage
|
||||||
when: is_production_vm == True
|
when: is_production_vm == True and do_nfs_storage == True
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- name: install redmine package depdendencies
|
- name: install redmine package dependencies
|
||||||
yum:
|
yum:
|
||||||
name: ['mysql-devel', 'unzip', 'rubygems', 'ruby-devel', 'libuuid-devel',
|
name: ['mysql-devel', 'unzip', 'rubygems', 'ruby-devel', 'libuuid-devel',
|
||||||
'zlib-devel', 'openssl-devel', 'gcc-c++', 'ImageMagick-devel',
|
'zlib-devel', 'openssl-devel', 'gcc-c++', 'ImageMagick-devel',
|
||||||
|
Loading…
Reference in New Issue
Block a user