Bug 224626 - sysutils/puppetserver: puppetserver has an incorrect hardcoded path to rubygem-facter
Summary: sysutils/puppetserver: puppetserver has an incorrect hardcoded path to rubyge...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-27 23:46 UTC by Rainbow
Modified: 2018-01-27 20:15 UTC (History)
3 users (show)

See Also:


Attachments
Quick and dirty script to create an appropriate symlink to the system ruby version of rfacter (487 bytes, application/x-shellscript)
2017-12-27 23:46 UTC, Rainbow
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainbow 2017-12-27 23:46:29 UTC
Created attachment 189147 [details]
Quick and dirty script to create an appropriate symlink to the system ruby version of rfacter

Currently, sysutils/puppetserver is broken (will not run, complains about not being able to find facter, in logs,) unless you have the rubygem
facter version 2.4.6 installed, as it's hardcoded into the default
config for puppetserver:
/usr/local/etc/puppetserver/conf.d/puppetserver.conf:8
        /usr/local/lib/ruby/gems/2.3/gems/facter-2.4.6/lib,

The current version of rfacter in ports is 2.5.0

Updating this line to /usr/local/lib/ruby/gems/2.3/gems/facter-2.5.0/lib
causes the service to function correctly.

I have attached a script that extracts the current installed default version of ruby, the currently installed rubygem-facter version, and creates a symlink from the appropriate location to /usr/local/lib/ruby/gems/default/gems/facter/lib

It's a bit quick and dirty but it gets the job done.

With this, either running on update/install of sysutils/puppetserver or sysutils/rubygem-facter, and updating the the config file to use the symlink, it would resolve this issue.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2017-12-27 23:46:29 UTC
Maintainer informed via mail
Comment 2 Rainbow 2017-12-28 00:20:48 UTC
Er, 2.5.1 is the current rfacter version. Not sure how I messed that up.
Comment 3 Zach Leslie freebsd_committer freebsd_triage 2018-01-17 05:17:41 UTC
I've got https://reviews.freebsd.org/D13822 for this.  https://reviews.freebsd.org/D13803 was for the facter gem side.
Comment 4 Steve Wills freebsd_committer freebsd_triage 2018-01-22 18:42:11 UTC
(In reply to Zach Leslie from comment #3)
D13822 is accepted.
Comment 5 Zach Leslie freebsd_committer freebsd_triage 2018-01-27 20:15:39 UTC
The fix has been committed.