mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-11-09 22:40:36 +00:00
Compare commits
No commits in common. "6899d1321702f6073014f89b7b9399a726bfbc35" and "609d46c0a9cd8a9632fefcb4d2282bd81ba3b73b" have entirely different histories.
6899d13217
...
609d46c0a9
@ -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: installation-package_latest_43921320-9957-4066-9e2c-bfb611968507_2021-03-10.zip
|
||||
installer_package_name: easyredmine_2016_stable_u2072_vVersion_10_2_0.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.6.6
|
||||
ruby_version: 2.7.1
|
||||
is_production_vm: no
|
||||
redmine_files_nfs_mount: '' # /mnt/redminefiles
|
||||
redmine_files_nfs_source: '' # 171.26.20.75:/srv/easyredmine
|
||||
@ -45,10 +45,6 @@ _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 }}'
|
||||
|
@ -1,20 +1,6 @@
|
||||
- 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
|
||||
- name: install mysql, mariadb packages
|
||||
yum:
|
||||
name: ['mysql-devel', 'MariaDB-server', 'MySQL-python', 'MariaDB-shared']
|
||||
state: present
|
||||
update_cache: yes
|
||||
name: ['mysql-devel', 'mariadb-server', 'MySQL-python']
|
||||
become: yes
|
||||
|
||||
- name: manage MySql/MariaDB database service
|
||||
@ -56,7 +42,6 @@
|
||||
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)
|
||||
|
||||
|
@ -27,7 +27,11 @@
|
||||
rich_rule: 'rule service name="ssh" family="ipv4" source address="{{ item }}" accept'
|
||||
permanent: true
|
||||
state: enabled
|
||||
with_items: "{{ firewall_addrs }}"
|
||||
with_items:
|
||||
- 128.192.75.0/24
|
||||
- 192.168.0.0/16
|
||||
- 172.16.0.0/16
|
||||
- 128.91.49.0/24
|
||||
become: yes
|
||||
notify: restart firewalld
|
||||
when: is_production_vm == True
|
||||
|
@ -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 and do_nfs_storage == True
|
||||
when: is_production_vm == True
|
||||
|
@ -1,4 +1,4 @@
|
||||
- name: install redmine package dependencies
|
||||
- name: install redmine package depdendencies
|
||||
yum:
|
||||
name: ['mysql-devel', 'unzip', 'rubygems', 'ruby-devel', 'libuuid-devel',
|
||||
'zlib-devel', 'openssl-devel', 'gcc-c++', 'ImageMagick-devel',
|
||||
|
Loading…
Reference in New Issue
Block a user