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

Fix current issues with vagrant box creation

This commit is contained in:
Kris Lamoureux 2021-12-02 15:21:46 -05:00
parent 033002705d
commit ace78b9c51
Signed by: kris
GPG Key ID: A30022791E1719A4
4 changed files with 24 additions and 2 deletions

View File

@ -15,7 +15,7 @@ remote_scratch_path: /vagrant/scratch
nginx_pem: redmine.vm-rsa.pem nginx_pem: redmine.vm-rsa.pem
installer_package_name: installation-package_latest_43921320-9957-4066-9e2c-bfb611968507_2021-03-10.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: 'https://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'
redmine_root_dir: /opt/easyredmine redmine_root_dir: /opt/easyredmine
mysql_admin_login: root mysql_admin_login: root
@ -55,3 +55,10 @@ rvm1_bundler_install: yes
rvm1_install_path: '/home/{{ redmine_owner }}/.rvm' rvm1_install_path: '/home/{{ redmine_owner }}/.rvm'
rvm1_rvm_check_for_updates: no rvm1_rvm_check_for_updates: no
rvm1_user: '{{ redmine_owner }}' rvm1_user: '{{ redmine_owner }}'
# Unprioritize dead key server, see: https://github.com/rvm/rvm1-ansible/issues/228
rvm1_gpg_key_servers:
- hkp://pgp.mit.edu
- hkp://keyserver.pgp.com
- '{{ rvm1_gpg_key_server }}'
#- hkp://ipv4.pool.sks-keyservers.net

View File

@ -56,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 }}'
login_unix_socket: '/var/lib/mysql/mysql.sock'
become: yes 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)

View File

@ -2,7 +2,13 @@
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',
'expect', 'subversion', 'git'] 'expect', 'subversion', 'git', 'epel-release']
become: yes
- name: install javascript runtime
yum:
name: 'nodejs'
update_cache: yes
become: yes become: yes
# these gems are not user_install but the RVM path is for local redmine # these gems are not user_install but the RVM path is for local redmine

View File

@ -1,6 +1,14 @@
- import_tasks: addswap.yml - import_tasks: addswap.yml
# Temporary workaround for outdated vagrant box base
- name: upgrade all packages
yum:
name: '*'
state: latest
update_cache: yes
become: yes
- name: install system tools - name: install system tools
yum: yum:
name: ['rsync', 'strace', 'nmap', 'yum-utils', 'sendmail', name: ['rsync', 'strace', 'nmap', 'yum-utils', 'sendmail',