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

bugfix/#18863/Remove default license of GeoIP and add a Setting to manualy install the license #7

Merged
merged 7 commits into from
Oct 19, 2024

Conversation

ptorresred
Copy link
Contributor

@ptorresred ptorresred commented Oct 11, 2024

Related issue in RedMine

Remove default license of GeoIP and add a Setting to manualy install the license: https://redmine.redborder.lan/issues/18863

Description / Motivation

Fixed (#18863): Geoip was using hardcoded license. We needed a license field in settings that was used by geoip when executed

Detail

Got rid of hardcoded license key. Now the key will be get from General Settings.

Also added the next line to "resources/providers/config.rb" file:

not_if { node['redborder']['geoip_key'].nil? || node['redborder']['geoip_key'].empty? }

This line will make sure that geoipupdate is not executed when installing the manager if the license does not exist or if it has not been written in the generated settings yet.

Copy link

the-label-bot bot commented Oct 11, 2024

The Label Bot has predicted the following:

Category Value Confidence Applied Label

@ptorresred ptorresred added size/XS size/XS kind/bug kind/bug labels Oct 11, 2024
@manegron manegron merged commit 01f22cc into development Oct 19, 2024
2 checks passed
@manegron manegron deleted the bugfix/#18863_license_in_settings branch October 19, 2024 08:11
manegron added a commit that referenced this pull request Oct 19, 2024
* bugfix/#18863/Remove default license of GeoIP and add a Setting to manualy install the license (#7)

* Redmine Bugfix #18863: Get geoip license from settings

* Bump and changelog

* Redmine Bugfix #18863: Added license key check when executing when installing the manager

* Redmine Bugfix #18863: Added condition to geoipupdate when installing

* Use license_key instead of node

* reverse changelog update and metadata version

* Add user_id

---------

Co-authored-by: Miguel Negron <manegron@redborder.com>

* Bump version

---------

Co-authored-by: ptorresred <ptorres@redborder.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug kind/bug size/XS size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants