From owner-freebsd-ports@FreeBSD.ORG Fri Feb 5 20:41:42 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F9F8106566B for ; Fri, 5 Feb 2010 20:41:42 +0000 (UTC) (envelope-from raj@csub.edu) Received: from mh0.csub.edu (mh0.csub.edu [136.168.1.94]) by mx1.freebsd.org (Postfix) with ESMTP id 761CE8FC1F for ; Fri, 5 Feb 2010 20:41:42 +0000 (UTC) Received: from [136.168.65.65] (strider.csub.edu [136.168.65.65]) (authenticated bits=0) by mh0.csub.edu (8.13.8/8.13.8) with ESMTP id o15Kffw3071704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Feb 2010 12:41:41 -0800 (PST) (envelope-from raj@csub.edu) Message-ID: <4B6C828F.7050500@csub.edu> Date: Fri, 05 Feb 2010 12:41:51 -0800 From: Russell Jackson Organization: California State University, Bakersfield User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: Tobias Lott References: <20100205202707.294e1e82@sub.han.vpn.gamesnet.de> In-Reply-To: <20100205202707.294e1e82@sub.han.vpn.gamesnet.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: FreeBSD port: puppet-0.25.3_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2010 20:41:42 -0000 On 02/05/2010 11:27 AM, Tobias Lott wrote: > I just installed a fresh Jail based on FreeBSD 8.0-STABLE to run > puppetmasterd. On a remote puppetd connecting I get following errors: > > debug: Failed to load library 'RRDtool' for feature 'rrd' > warning: RRD library is missing; cannot store metrics > warning: RRD library is missing; cannot graph metrics > warning: RRD library is missing; cannot store metrics > warning: RRD library is missing; cannot graph metrics > warning: RRD library is missing; cannot store metrics > warning: RRD library is missing; cannot graph metrics > err: Report rrdgraph failed: Could not find graphs for daily > > Just installing rrdtool+ruby-bindings did the Job normally. > > $ grep RRDtool /usr/local/lib/ruby/site_ruby/1.8/puppet/feature/base.rb > Puppet.features.add(:rrd, :libs => ["RRDtool"]) > > > root@pp (~) ?0 # pkg_info -L rrdtool-1.3.9|grep ruby > /usr/local/lib/ruby/site_ruby/1.8/amd64-freebsd8/RRD.so > > Am I missing another dependence here? I'm not using RRD on my puppetmasterd at the moment. I'll try enabling it and get back to you. > > Are there any Puppet Best Practices with FreeBSD Writeups especially > about Port Handling around? > None that are specific to FreeBSD that I know of. Puppet's handling of ports has so far been abysmal. Portupgrade doesn't work very well for non-interactive usage and doesn't like being detached from a controlling terminal. A large part of the problem is that the ports system is ill suited to this kind of automation. The other part is that Luke didn't put much effort into making them work because he was irked early on by FreeBSD's way of doing things --and I can't blame him. The freebsd package provider (using pkg_add/remove) for FreeBSD works fairly well, but you'll have to either settle for whatever is is available official build cluster or setup your own build cluster and override PACKAGESITE. Even here, the package database is delicate and easily corrupted. A major deficiency is the lack of locking during package registration. I've given a number of attempts at implementing better support for the ports provider, but I've been hampered by Ruby's oddities (coming from a Python guy) from producing anything robust enough for public consumption. /me dons flame suit Sometimes I wish FreeBSD would just adopt APT. -- Russell A. Jackson Network Analyst California State University, Bakersfield