Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2018 19:03:25 -0800
From:      Zach Leslie <xaque208@gmail.com>
To:        "Dan Mahoney (Gushi)" <freebsd@gushi.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: rubygem-facter versus sysutils/facter
Message-ID:  <CACrr7Y5zEFVVRGoQABzgkroc-M4hW0L0DZebwgMMMJW6C7A6KQ@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.20.1802051738440.96172@prime.gushi.org>
References:  <alpine.BSF.2.20.1802051738440.96172@prime.gushi.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 5, 2018 5:51 PM, "Dan Mahoney (Gushi)" <freebsd@gushi.org> wrote:

All,

I've lost the better part of an afternoon to this issue.  These questions
are not just specific to the above ports, but also as to how ports are best
built in general.

BACKGROUND:

The puppet ports require rubygem-facter.  There's a knob in the port that
lets you switch to sysutils/facter, which is more modern and written in C.
Rubygem-facter is based on facter 2, which is EOL as of 2016.  The
new-style puppet facts are now including more and more information that's
not available in rubygem-facter, and it means that the "Fact" documentation
on puppet.org doesn't at all match what you currently get on FreeBSD, even
with a modern puppet.

The ruby folks have been trying to make a modern rubygem-version for years,
but there's no real progress:

https://tickets.puppetlabs.com/browse/FACT-1523
https://tickets.puppetlabs.com/browse/FACT-1542

Having to build a custom port of Puppet on every machine (which would mean
building ruby from scratch) is annoying as heck, and while I have my own
poudriere install and build repos, it's *puppet* that places those on my
production machines, so I'm looking for a bootstrapping method that "just
works" as simply as 'pkg install puppet4' does.


Perhaps you have reasons not to, but sysutils/puppet5 should be the
promised land you are looking for.  By default it uses sysutils/facter, and
since that seems to be your underlying goal, maybe start there.

I can dig closer at your questions if that ends up being insufficient.

There is also a puppet module for poudriere that can help, should you
choose to build a repo.

Cheers,

Zach



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACrr7Y5zEFVVRGoQABzgkroc-M4hW0L0DZebwgMMMJW6C7A6KQ>