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

Compare commits

..

4 Commits

9 changed files with 19 additions and 19 deletions

4
Vagrantfile vendored
View File

@ -4,7 +4,7 @@ Vagrant.configure(2) do |config|
config.vm.box_url = 'http://software.apidb.org/vagrant/centos-7-64-puppet.json'
config.vm.box = 'ebrc/centos-7-64-puppet'
config.vm.hostname = 'redmine.vm.apidb.org'
config.vm.network :private_network, type: 'dhcp'
@ -22,7 +22,7 @@ Vagrant.configure(2) do |config|
# end
config.vm.provision 'deploy', type: 'ansible' do |ansible|
ansible.playbook = 'playbook.yml'
ansible.playbook = 'vagrant-playbook.yml'
ansible.galaxy_role_file = 'requirements.yml'
ansible.galaxy_roles_path = 'roles'
end

View File

@ -1,4 +1,3 @@
easyredmine_login_bg_img: login-bg-58894778db89f0c55f5aa371eff62b7475325258f4308e9c286f988a37e0e44b.jpg
redmine_mail_alias: redmine@localhost
redmine_owner: vagrant
redmine_uid: ''

View File

@ -2,8 +2,6 @@
- hosts: all
become: yes
gather_facts: yes
vars_files:
- config.yml
roles:
- { role: rvm.ruby, tags: ruby, become: yes }

View File

@ -68,6 +68,7 @@
src: '{{ nginx_pem }}'
become: yes
notify: restart nginx
when: not is_production_vm
- name: manage Nginx service
service:

View File

@ -96,17 +96,6 @@
when: do_redmine_installer == True
become: yes
- name: install custom login background image
copy:
dest: '{{ item }}'
src: '{{ easyredmine_login_bg_img }}'
owner: '{{ redmine_owner }}'
with_items:
- '{{ redmine_root_dir }}/public/plugin_assets/easy_extensions/images/login-bg.jpg'
- '{{ redmine_root_dir }}/public/assets/{{ easyredmine_login_bg_img }}'
when: do_redmine_installer == True
become: yes
- name: create maintenance dir
file:
path: '/usr/share/nginx/html/easyredmine'

View File

@ -7,6 +7,6 @@ cd {{ redmine_root_dir }}
[[ -s "{{ rvm1_install_path }}/scripts/rvm" ]] && \
source "{{ rvm1_install_path }}/scripts/rvm"
{{ rvm1_install_path }}/gems/ruby-{{ ruby_version }}/bin/bundle exec rake \
{{ rvm1_install_path }}/rubies/ruby-{{ ruby_version }}/bin/bundle exec rake \
eupathdb:fetch_changesets \
RAILS_ENV="production"

View File

@ -5,11 +5,11 @@ cd {{ redmine_root_dir }}
[[ -s "{{ rvm1_install_path }}/scripts/rvm" ]] && \
source "{{ rvm1_install_path }}/scripts/rvm"
{{ rvm1_install_path }}/gems/ruby-{{ ruby_version }}/bin/bundle exec rake \
{{ rvm1_install_path }}/rubies/ruby-{{ ruby_version }}/bin/bundle exec rake \
redmine:email:receive_imap \
RAILS_ENV="production" \
project=sysdba \
allow_override=project,assigned_to,tracker,priority,category,status \
allow_override=project,assigned_to,tracker,priority,category,status,"VEuPathDB Team","Type of support","Component DB","Support source" \
host=imap.gmail.com \
port=993 ssl=SSL \
username={{ smtp_username }} \

13
vagrant-playbook.yml Normal file
View File

@ -0,0 +1,13 @@
---
- hosts: all
become: yes
gather_facts: yes
vars_files:
- config.yml
roles:
- { role: rvm.ruby, tags: ruby, become: yes }
- { role: rvm.ruby.patch, tags: ruby, become: yes }
- { role: easyredmine, become: no }
tasks: