From owner-freebsd-ports@freebsd.org Tue Feb 6 04:13:42 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6ADE8EF0D92 for ; Tue, 6 Feb 2018 04:13:42 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2001:4f8:3:3d::42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "prime.gushi.org", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0456473A28 for ; Tue, 6 Feb 2018 04:13:41 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (danm@localhost [127.0.0.1]) by prime.gushi.org (8.15.2/8.15.2) with ESMTPS id w1649LCQ015304 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 5 Feb 2018 20:09:22 -0800 (PST) (envelope-from danm@prime.gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org w1649LCQ015304 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1517889873; bh=Oeti8FI5D2PubGIc/5pslIkWnIMzZuZEo7QMhhVHmss=; h=Date:From:To:cc:Subject:In-Reply-To:References; z=Date:=20Mon,=205=20Feb=202018=2020:09:21=20-0800=20(PST)|From:=20 "Dan=20Mahoney=20(Gushi)"=20|To:=20Zach=20Lesli e=20|cc:=20"Dan=20Mahoney=20(Gushi)"=20,=20freebsd-ports@freebsd.org|Subject:=20Re:=20rubygem -facter=20versus=20sysutils/facter|In-Reply-To:=20|References:=2 0=20; b=N7CHnWcELNWIyTem5ciSVVd962aFQGlt7AZwTTYlnR+csN1We7AYDSVUAvuZ68EI1 iG4Ggwt4ZG4+87FM8lD1ehn7qO334FZVihUBTM4GsRt/cVJh7TFOX2NkfdMZp5VkB4 aGF+bUmnWrveFcJc6BX5ckkW2GDQ+E7PNwdbdRiT9gNg/VDXuXNkaMPdLtrVDsgekr Th0YTdCgU/kNMHvfnwlJFiwDtFoD3JwrBhqaDV8LE0eUF++tO/6W3vXRMq9G/QZncG Bu73hJdof2mM9/LF/IwqSohbpj/idb0JN6IqARy89jPub2yW7dgpEZf535+36wsZaD Fnu6jHOFcGrWg== X-DomainKeys: Sendmail DomainKeys Filter v1.0.2 prime.gushi.org w1649LCQ015304 DomainKey-Signature: a=rsa-sha1; s=primegushiorg; d=gushi.org; c=nofws; q=dns; h=received:date:from:x-x-sender:to:cc:subject:in-reply-to: message-id:references:user-agent:x-openpgp-key-id:mime-version:content-type; b=qiK+GCFSu5JqSNgTqcppoyuv9EUGhimMqG50Ne3xzVObs9PbL3ARFIkSami6gQujh LddPFKQUG0S/sSUr8DOcA== Received: (from danm@localhost) by prime.gushi.org (8.15.2/8.15.2/Submit) id w1649LZE015303; Mon, 5 Feb 2018 20:09:21 -0800 (PST) (envelope-from danm) Date: Mon, 5 Feb 2018 20:09:21 -0800 (PST) From: "Dan Mahoney (Gushi)" X-X-Sender: danm@prime.gushi.org To: Zach Leslie cc: "Dan Mahoney (Gushi)" , freebsd-ports@freebsd.org Subject: Re: rubygem-facter versus sysutils/facter In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) X-OpenPGP-Key-ID: 0x624BB249 MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (prime.gushi.org [127.0.0.1]); Tue, 06 Feb 2018 04:04:34 +0000 (UTC) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2018 04:13:42 -0000 On Mon, 5 Feb 2018, Zach Leslie wrote: >=20 >=20 > On Feb 5, 2018 5:51 PM, "Dan Mahoney (Gushi)" wrote: > All, > > I've lost the better part of an afternoon to this issue.=C2=A0 Thes= e questions are not just specific to the above ports, but also as to how po= rts are best built in general. > > BACKGROUND: > > The puppet ports require rubygem-facter.=C2=A0 There's a knob in th= e port that lets you switch to sysutils/facter, which is more modern and wr= itten in C. Rubygem-facter is based on facter > 2, which is EOL as of 2016.=C2=A0 The new-style puppet facts are no= w including more and more information that's not available in rubygem-facte= r, and it means that the "Fact" documentation > on puppet.org doesn't at all match what you currently get on FreeBS= D, even with a modern puppet. > > The ruby folks have been trying to make a modern rubygem-version fo= r years, but there's no real progress: > > https://tickets.puppetlabs.com/browse/FACT-1523 https://tickets.pup= petlabs.com/browse/FACT-1542 > > Having to build a custom port of Puppet on every machine (which wou= ld mean building ruby from scratch) is annoying as heck, and while I have m= y own poudriere install and build repos, > it's *puppet* that places those on my production machines, so I'm l= ooking for a bootstrapping method that "just works" as simply as 'pkg insta= ll puppet4' does. >=20 >=20 > Perhaps you have reasons not to, but sysutils/puppet5 should be the promi= sed land you are looking for.=C2=A0 By default it uses sysutils/facter, and= since that seems to be your underlying goal, maybe > start there. >=20 > I can dig closer at your questions if that ends up being insufficient. That might in fact be the answer, but that could involve upgrading a lot=20 of puppet clients, not all of whom might have a puppet5 binary available.= =20 Puppet's new-model-year-push is kind of annoying for those of us that run= =20 things long-term in prod. It looks as though puppet5 works with a puppet4 server, but that's known=20 to break in the past. In the meantime, I am actually curious about the questions I asked, as=20 they're more than this issue -- if specifying a binary name in a ports=20 Makefile will survive through to pkg. (The docs say nothing one way or=20 the other), or how to get pkg to just do what I want it to (just install a= =20 package but don't deinstall the conflicts, I know what I'm doing. really). Perhaps I should ask those as standalone questions on their own. -Dan --=20 --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org ---------------------------