Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install CONSUL version 1.4.0 #185

Merged
merged 2 commits into from
Nov 24, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add Ruby 2.7 compatibility to Errbit
Since Errbit uses Rails 4, we need to specify an earlier version of the
`bigdecimal` gem in order to make Rails 4 compatible with Ruby 2.7. The
idea comes from pull request 1508 in https://github.com/errbit/errbit/.

On the plus side, we can now use Bundler 2.
  • Loading branch information
javierm committed Nov 8, 2021
commit 9ac1112d4cdb93d242c1cb28988e3283732ac74b
12 changes: 6 additions & 6 deletions roles/errbit/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
shell: "git clone https://github.com/errbit/errbit.git {{ errbit_dir }}"
when: errbit_repo.stat.exists == False

# TODO: Remove when we upgrade to bundler 2.x
- name: Use bundler 1.x
replace:
path: "{{ errbit_dir }}/Gemfile.lock"
regexp: ' 2.*'
replace: ' 1.17.1'
- name: Add Ruby 2.7 compatibility
template:
src: "{{ playbook_dir }}/roles/errbit/templates/UserGemfile"
dest: "{{ errbit_dir }}/UserGemfile"
owner: "{{ deploy_user }}"
group: "{{ deploy_group }}"

- name: Create log folder
file:
Expand Down
1 change: 1 addition & 0 deletions roles/errbit/templates/UserGemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gem "bigdecimal", "~> 1.4.4"